shortcode
-
Hi contact form 7 specialists,
I need a dropdown menu with dynamic text to fill options.
So I have this shortcode in my custom plugin which should replace the dropdown menu:function choix_aile($atts) { $content ="<select required name='aile' > <option> lulu <option> toto </select>"; return($content) ; } add_shortcode('choix_aile', 'choix_aile');
and a dynamictext field in a contact form like so:
<label> Aile-2
[dynamictext aile_2 “choix_aile”]</label>but it doesn’t work.
If I replace the return($content) by echo in my shortcode the dropdown menu is displayed but outside of the contact form.
What should I do?
Thanks
JacquesThe page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘shortcode’ is closed to new replies.