Forums

Read Values by PHP

webuniverse 23 Apr, 2017
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
Max_admin 23 Apr, 2017
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.
webuniverse 24 Apr, 2017
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
Max_admin 24 Apr, 2017
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.
GreyHead 24 Apr, 2017
Hi Corinne,

I have got data with $this->data["Differentthings"] - using [] and not ()

Bob
mikezf 25 Jul, 2017
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
Max_admin 29 Jul, 2017
1 Likes
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.
This topic is locked and no more replies can be posted.