I have a details form (read-only) with some elements.
One element is a status (hidden) and one a link field.
Depending the status I want to show hide the link element.
Now I took the status element and in the javascript part I entered 2 events:
On Load: if element 'Status' not regex 1|7 hide element 'xxx.link'
On Load: if element 'Status' regex 1|7 show element 'xxx.link'
It works fine, only when the form opens it first shows the link and then after a short delay it hides the link if the status is not 1 or 7.
How do I adapt the code that the link-element is directly hidden?
Many thanks in advance,
Filip
One element is a status (hidden) and one a link field.
Depending the status I want to show hide the link element.
Now I took the status element and in the javascript part I entered 2 events:
On Load: if element 'Status' not regex 1|7 hide element 'xxx.link'
On Load: if element 'Status' regex 1|7 show element 'xxx.link'
It works fine, only when the form opens it first shows the link and then after a short delay it hides the link if the status is not 1 or 7.
How do I adapt the code that the link-element is directly hidden?
Many thanks in advance,
Filip