Is there a way to clear the fields on one page at once rather than using
fields.Field_name.value = null;
each time?[/b]
How to nullify all fields on one page?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 81
- Joined: Thu Jul 30, 2015 12:44 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Try this - clears all fields on the current page:
Code: Select all
for each (var ctrl in form.currentPage.allControls)
{
if (ctrl.field)
{
ctrl.field.value = null;
}
}
0 x
Who is online
Users browsing this forum: No registered users and 18 guests