CS Forms Broken If A Parameter Is Used

Hi Charlie,

I have discovered a problem with a CS Form, which breaks it. If a parameter is added to a form, the form will not submit. The parameter button is available on the form, so presumably parameters are allowed?

My scenario is that I have a relatively simple form (name, email, organisation, message text area, plus two hidden fields - page ({{dc:post:title}}) and submarine ({{dc:p:submarineName}})

It is this final field which breaks the form.

My parameter for the form is:

{
  "submarineName" : {
    "label"       : "Submarine Name",
    "type"        : "text",
    "placeholder" : "T-26"
  }
}

The idea is that I can use the same form as a Component next to each submarine on the page and can fill in the parameter field so the hidden field is populated with the model number when the enquiry is submitted.

If I remove the parameter from the form, it submits and behaves as expected.

Is this a bug, or are parameters not allowed in CS Forms?

Thanks,
Christopher

I wasn’t able to recreate. Try double checking the Hidden input doesn’t have something wrong with it. It might just be fixed in the 1.0.0 release.

The Form Submission post type is also going to store where the form was submitted from. So you might not need to do that post title thing you are doing. Have a great weekend.

The hidden field looks ok to me. It was actually a clone of the other hidden field, with the name changed. It is definitely the parameter causing the failure. Please see the secure note!