Need a check on a script I've used for show/hide
The below is in the custom validation script box of a field (model4) on page 3 of my document and if absolutely any content is added to that field, a message appears on page 1.
- on the document as a standalone, the first part works well, but if the content is removed from the model4 field, the message on page 1 doesn't revert to hidden
- if the document is used through an automated system, it merges with content in the field model4, but the message on page 1 doesn't appear.
Have I missed something or made a mistake?
if (event.value.length == 0) {
this.getField("Cont onto Sch22").display = display.hidden;
} else {
this.getField("Cont onto Sch22").display = display.visible;
}
