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
Is there a way one can create an expression property for toggling required fields?
{ key: 'hideExpression', type: 'input', templateOptions: { label: 'Hide Expression' } },
Maybe something similar to what I used for the hide expression.
The text was updated successfully, but these errors were encountered:
I think the impediment to doing that with simple fieldGroup (expressionProperties) + input (templateOptions.required) is the latter's path. ngx-formly will break templateOptions.required into an object with a property when in this case you'd need the key preserved as is.
An approach that should work is to create a custom type that would interact with that part of the model:
Hi
Is there a way one can create an expression property for toggling required fields?
{ key: 'hideExpression', type: 'input', templateOptions: { label: 'Hide Expression' } },
Maybe something similar to what I used for the hide expression.
The text was updated successfully, but these errors were encountered: