modifier access to field value

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

modifier access to field value

#1

Postby Segi » Tue Feb 28, 2017 9:52 pm

When I loop through a group of controls by the modifier, I know how to change its properties like setDisplayOnly() and setHidden() but is there a way to set the value for all controls using the value property
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Mar 06, 2017 9:21 am

Something like this should work:

Code: Select all

for each (var ctrl in pages.Page_1.getControlsByModifier("mod1"))
{
	if (ctrl.field)
	{
		ctrl.field.value = "xxx";
	}
}
0 x


Who is online

Users browsing this forum: No registered users and 126 guests