Forum

Thread tagged as: Question, Runway, Forms

Using blocks in forms

Hi,

I'd need to give the editor the ability to add or remove checkboxes to a form. To put this in place, I thought about using the blocks feature. The code below produces a good HTML, but the values will not be passed when sending the form.

<perch:blocks>
    <perch:block type="input" label="Choice" icon="edit">
      <perch:content id="option" type="text" label="Option" required />
      <perch:input type="checkbox" id="pick<perch:content type="hidden" id="perch_item_index" />" value="<perch:content id="option" type="text" />" />
    </perch:block>
</perch:blocks>

Do you know of another way to brew that feature or to get this to work?

Thanks for any help!

Hugues Mertens

Hugues Mertens 0 points

  • 2 years ago

Perch forms cannot be dynamic with the only exception being select drop down options.

Perch forms uses the template during processing form results to compair the submission and prevent fraud and spam, so dynamic forms would cause issues, therefore they are not allowed.

Some hacks will work to get around this but are not reliable and should be avoided.

Thank you Robert,

I will design the form in another way!

Robert Ketter said:

Perch forms cannot be dynamic with the only exception being select drop down options.

Perch forms uses the template during processing form results to compair the submission and prevent fraud and spam, so dynamic forms would cause issues, therefore they are not allowed. https://ovo.fyi/redtube/ https://ovo.fyi/beeg/ https://ovo.fyi/spankbang/

Some hacks will work to get around this but are not reliable and should be avoided. Thank you Robert,

I will design the form in another way!