Forums

ChronoForms V5 Data Read

bsiemon 04 Jun, 2015
This is the Form Field ChrnoForms Created

<input name="full_name" id="full_name" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text">

I am tying to Auto Populate the full_name field with the code below, in the conditions of Data Read in ChronoForms V5
<?php
$user = JFactory::getUser();

return array("name" => $user->name);
$form->data['full_name'] = $user->name;
?>
the On Found has a debugger inserted, and the Data Array returns with the Correct Value

The problem I am having is that the Form Field is not populating

Can any one help?

Thanks
GreyHead 04 Jun, 2015
Hi bsiemon,

You have that code in the Conditions box of a DB Read action????

It will do nothing there.

Please put it into a Custom Code action in the form On Load event.

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