hello
I need to hide some field contents based on an other field value.
I try to use for this the "functions > php", but i can not read the row fields. How can i access the current row?
how would you do this?
Is php the best way or better javascript?
Thank you for an answer
Corinne
Hi Corinne,
If you want to hide it before the page is displayed then you can use PHP, but if it will be hidden based on user interaction on the same page then this needs JavaScript, you will need to use some code to do that, or you can wait for the new update which supports including Chronoforms6 forms because it has this show/hide feature.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thank you for your answer.
I do it now with jQuery :-)🙂
But, how can i read Fields in PHP?
I try: $this->get("Differentthings") and $this->data("Differentthings")
i didnt found a way to read fields values in php 😢
thank you
Corinne
Hi Corinne,
You can read the field value in PHP AFTER the form has been submitted, what's your field name ?
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Corinne,
I have got data with $this->data["Differentthings"] - using [] and not ()
Bob
Hi, another question to this topic.
Is it possible to get value with PHP from CC tag {connection/url:my_connection/index} output?
Best regards,
Mike
Hi Mike,
You can by parsing the tag using PHP:
$this->Parser->parse("{connection/url:my_connection/index}", true);
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.