Forums

Can't change a value through PHP

ByBus 26 Nov, 2017
Hi. I've read some post on this site about replacing value in form. But using php, I can not do it.

I've made teaxtarea with id dopinfo and with the same name. In the setup tab I've added the php block with code:

<?php
$this->data['dopinfo'] = "dfhfbcvbcv fgh fghfgh fghfgh fgh f";
?>

but textarea is still empty on load.
Replacing $this with $form does not help.
Version of chronoforms is 6

What am I doing wrong?

[URL=https://savepice.ru/][IMG]https://cdn1.savepice.ru/uploads/2017/11/26/2fe6a3f9d0297d80cd5e1274c2583136-full.jpg[/IMG][/URL]
Max_admin 27 Nov, 2017
Answer
1 Likes
Hello,

The PHP action code should NOT have php tags

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ByBus 27 Nov, 2017
yes, thank you, I already guessed🙂
This topic is locked and no more replies can be posted.