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
1 reply
Subscribers
7 subscribers
Views
990 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I'm trying to hide controls using some jave code on the on click event on dr
jeffreyh851
over 9 years ago
I'm trying to hide controls using some jave code on the on click event on dropdown72: Here's what I have, but it does not seem to be working. Thoughts?
if ("YES".equalsIgnoreCase(window.FormAPI.getValue("dropdown72").id
)){window.FormAPI.hide("dropdown101");
window.FormAPI.hide("paragraph102");
} else {
window.FormAPI.show("dropdown101");
window.FormAPI.show("paragraph102");
}
OriginalPostID-142026
OriginalPostID-142026
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 9 years ago
There's no equalsIgnoreCase() method in JavScript, that's a Java method.
Instead simply create a convention, for example, if your dropdown can be on both uppercase and lowercase simply do:
if ((window.FormAPI.getValue("dropdown72").id).toLowerCase == "yes"){
window.FormAPI.hide("dropdown101");
window.FormAPI.hide("paragraph102");
} else {
window.FormAPI.show("dropdown101");
window.FormAPI.show("paragraph102");
}
or
if ((window.FormAPI.getValue("dropdown72").id).toUpperCase == "YES"){
window.FormAPI.hide("dropdown101");
window.FormAPI.hide("paragraph102");
} else {
window.FormAPI.show("dropdown101");
window.FormAPI.show("paragraph102");
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel