Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
6 subscribers
Views
1157 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
In a form i have almost 20+ fields with value of Field ID having the pattern &qu
ramakg
A Score Level 1
over 13 years ago
In a form i have almost 20+ fields with value of Field ID having the pattern "fldProposal_"; When the form loads, instead of writing 20+ javascript statements that disable each field, any idea how to write a general purpose code that loops through all the 20 fields and disables each?...
OriginalPostID-30653
OriginalPostID-30653
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 13 years ago
See how I "dynamically" build the ID of the component and I pass it to the getComponentContainer function. You can call this function in the load event of your form; assuming the text fields have an id of type: myfield1, myfield2, this is the way to disable these two fields:
toggleEnabledFlag("myField",new Array(1,2))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 13 years ago
See how I "dynamically" build the ID of the component and I pass it to the getComponentContainer function. You can call this function in the load event of your form; assuming the text fields have an id of type: myfield1, myfield2, this is the way to disable these two fields:
toggleEnabledFlag("myField",new Array(1,2))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data