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
3 replies
Subscribers
8 subscribers
Views
3128 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, I am trying to disable a button (I have 2 buttons in the Form - one to
bojanb
over 11 years ago
Hi,
I am trying to disable a button (I have 2 buttons in the Form - one to "Proceed" and one to "Cancel"). I have a radio button which if it is "Yes", then it should make the Confirmation Button disabled, until a certain text-box field is full-filled (not empty). If the radio button is "No", then it shouldn't disable the Confirmation button (in this case, validation of the text field is not required). I am trying to disable the button with JavaScript code on the Radio Button (after checking the value of the radio button, the code looks like this):
"document.getElementsByName("Confirm")[0].disabled=true; "
I have also tried this:
"document.getElementById("Confirm").disabled=true;"
But none of them works...
Any suggestion would be very appreciated. Thank you in advance......
OriginalPostID-62085
OriginalPostID-62085
Discussion posts and replies are publicly visible
Parents
0
raghunandanj3904
Certified Senior Developer
over 11 years ago
Try this on onClick of ur radio button:
FormAPI.setDisabled(fieldId, disabled);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
raghunandanj3904
Certified Senior Developer
over 11 years ago
Try this on onClick of ur radio button:
FormAPI.setDisabled(fieldId, disabled);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data