Hello,

I'm using the webforms module and I wanted to know if the default validate and submit functions can be used after the form values are redirected to another url. The reason for this is that when I redirect to another url to deal with the form values they are not stored in the database. Furthermore, no validation is done which allows for submission of blank mandatory fields.

Has anybody run into this situation?

Thanks a lot!

Comments

aryam8’s picture

No volunteers?

emackn’s picture

I'm running into it now. No validation, I tired hooking into the webform validation, but it doesn't work. ;)

aryam8’s picture

Hello,
The new version of the module allows for custom processing (validation/processing) before the submission.

emackn’s picture

I just discovered the advanced processing and validation fields after enabling the "use PHP for additional processing" permission. ;)

harro’s picture

Does this pre-processing also enable webforms to be 'preloaded' ? What I am trying to set up is a questionnaire made up of two pages, where the first page is not submitted, but taken as values to fill the second page.

example:

On page 1 you are asked to select a few topics from a select-list. When you click 'submit' you are sent to page 2, which has a list of textfields. I want the topics selected on page 1 to be placed before the textfields as tags / descriptions.

This means 1) using the "redirect POST to a page" option and 2) on the next webform page there must be code to place the data on the page. As is I can't see how this could be achieved. A 'normal' page could be made with the code, but I will need to figure out how and where the results are written to the database...

In short: can this be done with the current webfrom template, or do I have to start from scratch?

Thank you!

Harro