Prefill web form fields

Hello there,

we have a web form, where we have several fields, for example “Subject”.

We can prefill the subject field, by passing GET-Parameters as following:

This works so far.

We wan’t to prefill the subject field by a POST request, instead of a GET-Request. If we try the following, we get a 400 error:

<form action="" action="post">
  <input type="hidden" name="subject" value="MySubject">
  <input type="submit" value="Submit" />

How to make that work?

Did you try setting Default Value in a Doctype/Customize Form?

This will not work, because the hidden field contains a value based on the page, where the user is.

The value “MySubject” is dynamic, based on the name of a Doc for example.

In javascript of your webform, set the value to your field by

$(‘input[name=“name_of_your_field”]’).val(“your value”)


Hi Ranjith,

we want to fill the form by another form which was submitted with POST method. I don’t think the JS Solution is the right one for this case.