ActiveCampaign Forum

Wordpress shortcodes in hidden field


#1

Hi I’m trying to get a list, generated by a shortcode, into activecampaign using a hidden field.
It is a signup form, that let the user sign up to a course, but the dates of the course is dynamically changed by a plugin that delivers a shortcode (plugin=pods).

I can do this by:
div class="_form_element _field3 _full_width "><input name="field[3]" type="hidden" value= "

[pods name='kursus' slug='1' template='kursus moduler tilmelding']
">

In the full code of the form, but I get more than I want. Somehow the value= " " field does not end at the last " but takes in the next lines of code until the next "

<input name="field[3]" type="hidden" value= "
[pods name='kursus' slug='1' template='kursus moduler tilmelding']
">
<div class=" <- this is the end of the value="" field.

Why???
Is there a better way to do this?


#2

This isn’t really something related to Active Campaign. You’re better off contacting Pods or going on Facebook in their group asking about this. Depending on how you connect your form to Active Campaign the value of the hidden field should populate so if it’s putting additional code or errors then it’s an issue with Pods not AC.