Hi!
How can I limit (validating) the selected options of a Multiselect dropdown? (for example three)
How can I limit (validating) the selected options of a Multiselect dropdown? (for example three)
maxSelected[3] probably in the validation options.
Thank you healyhatman, but it is not working...
I also tried with "Validate data" action (relative_topics/maxSelected[3]:errormessage) and also no success.
I also tried with "Validate data" action (relative_topics/maxSelected[3]:errormessage) and also no success.
OK got it for the front end.
maxCount[#] and minCount[#]
Still haven't figured out the back end sorry. For now you can just use custom PHP validation. Something along the lines of
maxCount[#] and minCount[#]
Still haven't figured out the back end sorry. For now you can just use custom PHP validation. Something along the lines of
if(count($this->data("dropdown_field")) > 3) { return false; }
It can be done with the validate data action, but it will require you to make changes to Chronoforms code. I can provide those changes for you, but they'll be overwritten if you update CF or CC. Better off waiting for Max to fix it in a later update, and just validate with PHP for the backend.
This topic is locked and no more replies can be posted.