Hi,
A newbie question here. I am loading data via the DB Recorder Field. Instead of loading into TextBox where a user can change the value, I want to do 1 of two things
1) Can you make the textbox field a display only field.
2) Can I display the data in a custom element field instead. I have tried code like
<?php
echo $CreateOffer[ProductName];
?>
but it ain't working for me! Any help out there?
Thanks
A newbie question here. I am loading data via the DB Recorder Field. Instead of loading into TextBox where a user can change the value, I want to do 1 of two things
1) Can you make the textbox field a display only field.
2) Can I display the data in a custom element field instead. I have tried code like
<?php
echo $CreateOffer[ProductName];
?>
but it ain't working for me! Any help out there?
Thanks
Hi Mark,
I can't understand #1, but if your field name matches the value path in the form data array then it should be auto filled, e.g: if the data returned under $form->data['data'] then a field with name="data" will be filled, also, if your data is returned under $form->data['data']['sub'] (this is the case when you have a Model ID, then your field name should be: data[sub]
#2- use
You can use the "Debugger" action to display a list of all the data returned in the form->data array.
Regards,
Max
I can't understand #1, but if your field name matches the value path in the form data array then it should be auto filled, e.g: if the data returned under $form->data['data'] then a field with name="data" will be filled, also, if your data is returned under $form->data['data']['sub'] (this is the case when you have a Model ID, then your field name should be: data[sub]
#2- use
<?php echo $form->data['data']; ?>
You can use the "Debugger" action to display a list of all the data returned in the form->data array.
Regards,
Max
This topic is locked and no more replies can be posted.