NetTalk Central

Author Topic: Checkbox must be one of Y/N  (Read 4724 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Checkbox must be one of Y/N
« on: October 27, 2020, 02:58:47 AM »
Hi Guys,

I recently updated my NetTalk templates and it seems since then I am receiving "Must be one of Y/N" for most of my checkboxes in NWF.

I check and confirmed all the checkbox settings.

Only way currently to rectify is to change these field validations rules in my dictionary.

Any help will be appreciated,


NetTalk 11.45
Clarion 11 Build 13244



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Checkbox must be one of Y/N
« Reply #1 on: October 28, 2020, 02:50:53 AM »
Hi Rupert,

what are the validation rules set to in your dictionary?
what data type are you using for the field in the dictionary? (Byte, Long etc?)
What are the settings for the checkbox on the Form? What is the text you display? What are the values set to?

Cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Checkbox must be one of Y/N
« Reply #2 on: October 28, 2020, 03:40:15 AM »
Hi Bruce,

I am using a String field, 1 char.
Yes or No (Y/N)

Kindly see attached.


rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Checkbox must be one of Y/N
« Reply #3 on: October 28, 2020, 03:41:27 AM »
Dictionary validation is Must be True or False

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Checkbox must be one of Y/N
« Reply #4 on: October 28, 2020, 03:55:35 AM »
I think checkbox fields are set to 1 or 0 when checked/unchecked respectively. A Y/N string type field cannot be a checkbox unless there is a setting that allows to override this.

Regards,
Ubaidullah Nubar.

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Checkbox must be one of Y/N
« Reply #5 on: October 28, 2020, 04:49:06 AM »
Thank you Ubaidullah,

I used checkboxes like this for many years, and this was the first problem I experienced in NetTalk.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Checkbox must be one of Y/N
« Reply #6 on: October 30, 2020, 06:58:59 AM »
Tweak one of the shipping examples to show the effect Rupert, and post that.

cheers
Bruce