NetTalk Central

Author Topic: Radio buttons, NT 12.19 vs NT 12.41  (Read 2870 times)

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Radio buttons, NT 12.19 vs NT 12.41
« on: May 18, 2022, 03:59:12 PM »
Hi Bruce,

     I recently converted a number of NT 12.19 apps to NT 12.41. 

     In a NT 12.19 app, I have a form with 4 radio buttons, as seen in image RB 1219.png.  It stores the value in a field called Consent.  The dictionary is set to default Consent to 'No'.  When inserting a record, no radio button is selected, the Consent field defaults to 'No', and a record can be saved.
 
     In the NT 12.41 version of this app, when inserting a record, no radio button is selected, the Consent field defaults to 'No', and a record cannot be saved.  It genertaes an invalid error.  I find I must now include a fifth radio button for the option 'No', as seen in image RB 12.41.png.

     It seems something has changed with radio buttons between NT 12.19 and NT 12.41.  Any thoughts on this?

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Radio buttons, NT 12.19 vs NT 12.41
« Reply #1 on: May 18, 2022, 10:18:49 PM »
yes, something did change. From the History in the docs;
12.36 : Fix: Validating Radio fields did not set all validation fields.
12.24 : Fix: Validation on Radio fields which are conditionally read-only

Basically Radio values have to be one of the options. That's pretty much the definition of a Radio button. There isn't really the concept of a "none of the above" with Radios. So your solution is correct. If "no" is an option, then add it as an option.

Cheers
Bruce

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: Radio buttons, NT 12.19 vs NT 12.41
« Reply #2 on: May 20, 2022, 06:45:20 AM »
Thanks Bruce!