
My situation is when the form is loaded I need to know if one of my fields is visible, the reason is that some of my records are created in server side, and when the use opens them the rules of show/hide/mandatory are in a mess... so to prevent the situation of trying to save a record with mandatory field that is invisible I need first to know if it's visible and then to set the mandatory attrs.
Thank you !
Hi!
You can do it using the Client API.
With this approach you create a JavaScript resource with the following method on the Form OnLoad event which will return True or False:
formContext.getControl('fieldschemaname').getVisible();
getVisible (Client API reference)
Regards.