Boolean field to show Yes/No instead of default global True/False

Luiz Lucena
Mega Sage

Hi smart people, 
Hope everyone is safe out there!

Here is the challenge, we have a boolean field (currently a checkbox), which is not mandatory. When is checked, it presents 2 additional fields, one of them mandatory, Project Number.

find_real_file.png

The management requested to either have the checkbox mandatory or to unhide Project Number (which they later decided not to do to avoid confusion with other teams).
So, in order to make this field mandatory, it cannot be a check box anymore, which will force everyone to check (flag it as True).

I'm trying this, added an option "Dropdown with == none ==", but the options are True or False, which I'm sure the management will ask if it can be Yes or No.

find_real_file.png

I've added the choices as Yes or No, but the form insist in use the global true/false.

Would be possible to change the label of those values to Yes / No OR to use the choices I've created for this field?

find_real_file.png

9 REPLIES 9

Jim Coyne
Kilo Patron

I usually create a String-type field in than scenario, with the "Yes" and "No" choices.

SanjivMeher
Kilo Patron
Kilo Patron

Do you have option to create a new field?

If yes, that should be easy. Another option which you could try is g_form.clearOptions('field name') and then g_form.addOption which I havent tried


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv, 

Thanks for the input, but I'm afraid creating a new field would not be an option as it would affect the old records. 

You could create the new field and update the existing records based on the value of the old field.  Sometimes you just have to bite the bullet to get the desired result.