Forums

Hidden field override

alitvin 16 Jan, 2017
A have a multi page form, with hidden field on the first page. How i can override value of this field on the next pages? I try
$form->data["c_path"]=$form->data["c_path"].'_'.$form->data["event"];

but it doesn't work 😟
Max_admin 16 Jan, 2017
Hi alitvin,

In a custom code action after the "multi page" action:

<?php
$form->data["c_path"] = $form->data["c_path"].'_'.$form->data["event"];


That should work I think!

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
alitvin 16 Jan, 2017
Hi Max, thanks for your answer. I put this custom code "multi page" action, but it doesn't work. On all following pages the original value of hidden field is displayed 😟 .
Max_admin 16 Jan, 2017
Answer
1 Likes
Ok, please move it above the "multi page" action ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
alitvin 16 Jan, 2017
Yea, it works! Mx, thank, you very much! Just wondering, why it works that way?
Max_admin 16 Jan, 2017
Hi alitvin,

Because the data had to be changed before its stored in session by the "multi page".

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.