Copy link to clipboard
I'm looking to set up a document in a way that someone filling it out can only populate fields once all preceeding fields have been populated. Would there be a way to do this?
There is couple of ways to do that, by making fields read only or hidden until previous field is populated.
Lets say you have field1 and field2, you don't won't field 2 to be fillable until field1 is filled, you can make field2 read only like this: as validation script of field1 use this:
this.getField("field2").readonly = event.value == "" ? true : false;
or to make it hidden:
this.getField("field2").display = event.value == "" ? display.hidden : display.visible;
Since it's validation script for first time set fields to read only/hidden manually.
Thank you for the reply!