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
Disabling a view entails making the view gone and ignoring the logic and validations of the view.
To achieve this the following is suggested:
Add logic to change the view to type hidden so that the view is never rendered, then add an attribute called disabled to ensure the view's logic and validations are never executed since the view will not be created.
Here we will leverage the HiddenTextFactory's ability to hide a view.
The additional logic for disabling a view will be put only in this Factory.
It will be passed as arguments to a function in JsonApi interface e.g handleDisabledViews(formname, setOfKeysOfHiddenViews, setOfKeysOfDisabledViews) which will update the json form before render.
The text was updated successfully, but these errors were encountered:
Disable a view in native-form.
Disabling a view entails making the view gone and ignoring the logic and validations of the view.
To achieve this the following is suggested:
Add logic to change the view to type hidden so that the view is never rendered, then add an attribute called
disabled
to ensure the view's logic and validations are never executed since the view will not be created.HiddenTextFactory's
ability to hide a view.Handling the dynamic nature of the fields:
Fields we will read from a json file like so..
[{ "form_name": "formnamesample", "hidden":[] , "disabled":[] }]
It will be passed as arguments to a function in JsonApi interface e.g
handleDisabledViews(formname, setOfKeysOfHiddenViews, setOfKeysOfDisabledViews)
which will update the json form before render.The text was updated successfully, but these errors were encountered: