RadioButtons Validation
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
What kind of validation do you need to implement? You can make field mandatory in its settings: List settings -> Columns.
What kind of validation do you need to implement? You can make field mandatory in its settings: List settings -> Columns.
I know I could just make all of the fields i wanted madatory from the list column settings, however i was going down a path of doing all of my field requirements with JS.
I have a field of type Radio that has 2 choices. I just want to make sure a choice is made.
I have a field of type Radio that has 2 choices. I just want to make sure a choice is made.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
OK, I see. Here is the code you should add into onsubmit handler:
Code: Select all
if (fd.field('ChoiceRadio').value() == -1) {
alert('Please, make a choice');
return false;
}
return true;
-
- Posts: 16
- Joined: Mon Apr 11, 2016
Hi
I get radiobutton value from this
fd.field('FieldName').value()
but how can I get radio button text?
I get radiobutton value from this
fd.field('FieldName').value()
but how can I get radio button text?
-
- Moderator
- Posts: 33
- Joined: Wed Sep 21, 2016
viewtopic.php?f=1&p=701#p701 answer is here
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests