Hello everyone,
I tried to make opt_values for a checkbox editable field dynamic with the following code:
The "parametres.php" page has a simple input text field named "groupes". Inside that text field, I have entered "Test1 | Test2". What I want to do, is to show whatever is inside that "groupes" text field, as opt_values for the "groupes" editable on the Contacts page.
I have searched on the forum for a way to do this, and I cannot find anything that helped for now.
I would of done it with relation fields, but I must be able to let my client edit the options of a checkbox list, because I must be able to select multiple options at once.
Of course, if there's a way to use "relation" editables as checkboxes instead of dropdown menus, so that I can select multiple relations at once, that would be perfect, but I don't think it's possible.
Any idea?
Thanks a lot!
I tried to make opt_values for a checkbox editable field dynamic with the following code:
- Code: Select all
<cms:template title='Contacts' clonable='1' icon='person'>
<cms:config_form_view>
<cms:field 'testing'>
<cms:pages masterpage="parametres.php">
<cms:editable type='checkbox' name='groupes' opt_values='<cms:show noms_groupes />' />
</cms:pages>
</cms:field>
</cms:config_form_view>
The "parametres.php" page has a simple input text field named "groupes". Inside that text field, I have entered "Test1 | Test2". What I want to do, is to show whatever is inside that "groupes" text field, as opt_values for the "groupes" editable on the Contacts page.
I have searched on the forum for a way to do this, and I cannot find anything that helped for now.
I would of done it with relation fields, but I must be able to let my client edit the options of a checkbox list, because I must be able to select multiple options at once.
Of course, if there's a way to use "relation" editables as checkboxes instead of dropdown menus, so that I can select multiple relations at once, that would be perfect, but I don't think it's possible.
Any idea?
Thanks a lot!