0

I'd like to investigate if the following scenario is plausible somehow in Drupal 7:

The creation of a public form (node form/webform or whatever) with many instances so that each instance can be accessed only by a specific URL and can be filled by an anonymous user. The anonymous user should be able to fill in some of the fields, save his progress and come back later to fill some more using the same URL.

This scenario would allow the admin to create new instances, pre-fill some fields and send the form url by email to the final anonymous user.

The reason for all this is basically to avoid user registration and hold each user's submission to his unique URL form.

  • 2 main ideas: set 404 in .htaccess for all internal url, generate a new route for those instances with encoded url. – Jimmy Ko Jul 25 '16 at 8:33
  • @LePhleg can be accessed only by a specific URL and can be filled by an anonymous user Are these anonymous users anonymous outside of Drupal? as in you don't know them at all? or you know these people and will be sending them an e-mail with the specific url? – No Sssweat Jul 25 '16 at 9:16
  • @NoSssweat The end users, I supposed, would be specific individuals with no Drupal account and yes, the site admin would send them their specific form URL after he has pre-filled some fields first. – lephleg Jul 25 '16 at 9:49
  • Then it's possible, you just have to use the last url / part as an ID. Ex: example.com/filloutform/asdfjkl and asdfjkl will be the ID of the anonymous user for the DB. – No Sssweat Jul 25 '16 at 9:56
2

Any instance of a Webform is a node so each anonymous user get his own submissionreference. So e.g the name of the form is harrypotter the user is getting harrypotter/1 Where 1 is the submission nr.

In rules you are able to get the submission id, get the content and redirect to the form again.

However you have to protect it again other users. Therefore you can use another Web form in front of it which ask for a pincode. You can redirect the user with the help of the pincode and rules to the correct submissionid

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.