You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for the great package. At the moment I'm trying to use it with the BooleanGroup field, so that when a value is selected there, another field is displayed. Unfortunately, the BooleanGroup field requires an array cast for the source model attribute, so the current ->if() function cannot be used. I actually wanted to use `->if('booleangroup_field contains "MyValue":true') or something like that. Is there a way or an idea how I could implement this?
The text was updated successfully, but these errors were encountered:
It's probably more like a hotfix, but when I change line 226 in ConditionalContainer.php to return Str::contains(json_encode($attributeValue), $conditionValue); BooleanGroup conditions work. I think a special is_array() check isn't needed and the json_encode() addition shouldn't break anything else. Whereas I'm pretty sure there are better solutions.
Thank you very much for the great package. At the moment I'm trying to use it with the BooleanGroup field, so that when a value is selected there, another field is displayed. Unfortunately, the BooleanGroup field requires an array cast for the source model attribute, so the current ->if() function cannot be used. I actually wanted to use `->if('booleangroup_field contains "MyValue":true') or something like that. Is there a way or an idea how I could implement this?
The text was updated successfully, but these errors were encountered: