Currently, I have a radio button field with the Options: Yes;;No. The field is NOT required. When I go to publish my app, the radio button options are:
None
Yes
No
Is there any way to hide the NONE option when a radio button field is NOT required?
Hide None option for Radio Button
Re: Hide None option for Radio Button
I think I did not get the business case:
... then what shall the user select if he/she doesn't want to answer the optional question?
In other words:
If required, they have to select a given option.
If not required, you have to provide an option for 'nothing selected'.
AppGini does this for us.
If you manage to remove the 'None' option by using Javascript, the select control would fallback to the first option "yes", I guess. That would be identical with just setting the field to 'Required'.
Maybe if you could give some more information on the business case we could find a different solution.
If the answer is optional...The field is NOT required
... and, at the same time, the answer has to be eitherhide the NONE option
yes
or no
, ... then what shall the user select if he/she doesn't want to answer the optional question?
In other words:
If required, they have to select a given option.
If not required, you have to provide an option for 'nothing selected'.
AppGini does this for us.
If you manage to remove the 'None' option by using Javascript, the select control would fallback to the first option "yes", I guess. That would be identical with just setting the field to 'Required'.
Maybe if you could give some more information on the business case we could find a different solution.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Hide None option for Radio Button
A no-code solution, presuming you still want to keep the field(s) as optional; you could just change the language string of "None" (in the language.php file or via the Admin tool) to something more suitable such as "Not Applicable", "Optional", "Undecided" or "Pending", whatever might suit your purpose a little better.
It will of course change "None" globally but as far as I'm aware, I think the radio buttons are the only place that "None" applies?
It will of course change "None" globally but as far as I'm aware, I think the radio buttons are the only place that "None" applies?
Re: Hide None option for Radio Button
please try this code
i use to hide None on my check_Type field
i use to hide None on my check_Type field
Code: Select all
$j('#Check_Type0').hide().next().hide();