php Jtext placeholder

Add Joomla language strings to form placeholders.

Overview

The placeholder field in ChronoForms does not directly accept PHP or JText calls.
Use a Custom PHP action to assign the JText string to form data, then reference that data variable using a CF shortcode in the placeholder field.

Answered
ChronoForms v5
ie ieraora 14 Jul, 2020
Hello, How can I add php (Jtext) in Placeholder?
Thank youphp Jtext placeholder image 1
Gr GreyHead 05 Aug, 2020
Hi leraora,

Have you tried using a Custom PHP action to add the text to the form data, then use a CF short code in the placeholder.

Bob
ie ieraora 05 Aug, 2020
Sorry a lot, I tried everythings, without success...
The code down is correct?

php Jtext placeholder image 2


And the short code is this?


php Jtext placeholder image 3
Gr GreyHead 06 Aug, 2020
Answer
1 Likes
Hi leraora,

Please see this FAQ and use the $form->data['variable'] = . . . to set the value

Bob
This topic is locked and no more replies can be posted.