Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I am using a snippet to dynamically populate a dropdown in the admin panel:

Snippet:
Code: Select all
Please Select=-
<cms:pages masterpage="contracts.php" >
   | <cms:show k_page_title />
</cms:pages>


Admin:
Code: Select all
<cms:editable name="support_service" label="Service" opt_values='contracts.htm' dynamic='opt_values' type='dropdown' order='2'/>


For now everything works as expected, the dropdown has all the records from the contracts.php and I can select and save from the admin panel. The issue comes when I create a data-bound form to create pages.

The input from the form:
Code: Select all
                      <label for="support_service">Service</label>
                        <cms:input type="bound" name="support_service"/>


I can see all the records from contacts.php inside a select tag in my form but when I select something and proceed to submit, that dropdown remains with Please Select in the newly created page.

PS: I have other input fields in my dropdown, all working as expected. The only issue is with this one.
Apparently I had to add trust_mode='1' to my input. :?:
2 posts Page 1 of 1