I have learned from this forum how to populate a form using the profile page so that a user can edit his entries.
I am using the following code:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Practice Name</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_2" name="practicename" value="<?php echo {practicename}; ?>" type="text" />
However, I have not found how one codes this in order to repopulate a radiobox, checkbox, dropdown or textarea.
Thanks,
Stan
I am using the following code:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Practice Name</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_2" name="practicename" value="<?php echo {practicename}; ?>" type="text" />
However, I have not found how one codes this in order to repopulate a radiobox, checkbox, dropdown or textarea.
Thanks,
Stan
Bob helped me fix this by showing that I just need value = "{fieldname}" rather than the php code in the form.
The checkboxes and radiobuttons and textfields all populate if you simply place "editable = yes" in the profile page. In this case, you do not need the code above at all in your form. It simply populates.
The checkboxes and radiobuttons and textfields all populate if you simply place "editable = yes" in the profile page. In this case, you do not need the code above at all in your form. It simply populates.
Hi Stan,
You don't need to do anything to get these elements to re-load. I just ran a test as I couldn't remember :-(
You don't even need the value = "{fieldname}" - ChronoForms parses the Form HTML and adds the necessary values to redisplay the saved data.
You do need to set Editable to 'Yes' in the Plug-in Configuration.
Bob
You don't need to do anything to get these elements to re-load. I just ran a test as I couldn't remember :-(
You don't even need the value = "{fieldname}" - ChronoForms parses the Form HTML and adds the necessary values to redisplay the saved data.
You do need to set Editable to 'Yes' in the Plug-in Configuration.
Bob
This topic is locked and no more replies can be posted.