Hi All,
My requirement is add a mandatory check to checkbox field and it should look something like this below.
* [] Too expensive
In order to achieve this, I can use Label position for checkbox as "COLLAPSED".
But When I used "COLLAPSED", its not working for me as I m using a values as a local variable which is declared inside with function.
But I want these local variables to be declared inside with function as I need to refresh these on certain conditions.
So can anybody please suggest me how can I achieve this?
Thanks In Advance
Beena
Discussion posts and replies are publicly visible
Hi Beena,
As per my understanding I would suggest you to go with submit button i.e, On submit It validates the required field by showing a required message.
Please find the code.
a!checkboxField(
label:"",
labelPosition:"ADJACENT",
required: true,
choiceLabels: {"expensive"},
choiceValues: {"expensive"}
)
it will come like -- * [ ]