Forums

CF8 - PHP Action - Textfield

rbock 28 Sep, 2023
I have a PHP action. This returns either D or M. For M I need an optional text field, for D I need a mandatory text field. How do I solve this?
Max_admin 30 Sep, 2023
By using the Events behavior, with 2 events D,M, in D add a text field with no "required" validation, and in M add another with "required" validation
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 30 Sep, 2023
OK, that's how I implemented it. I also see the text field without "required validation". But, I can't submit the form! Message: "This field is required" (from hidden text field) Would you like to recreate this for yourself?!
Max_admin 30 Sep, 2023
Answer
1 Likes
ok, this bug has been fixed for the next update 8.0.14
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rbock 11 Oct, 2023
1 Likes
Hello Max, it works... thank you very much...
You need to login to be able to post a reply.