Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to save values from some of the fields in a cookie so that when next time user who uses the same computer opens the same form he/she doesn't have to fill those fields again. For example his name and address would already be there, prefilled from the the information that was saved in a cookie during first submission. Any suggestions on best way to do this in webform?
Comments
Comment #1
taralmoza CreditAttribution: taralmoza commentedHello gd1008,
Can you tell me the behavior of the page ??
Like Simple page ?? Or MultiPage ???
Best Regards,
Taral
Comment #2
quicksketchIf the user is logged in, you can use %profile[profile_*] tokens as the default value for fields and prepopulate those fields. You might also use %get[*] to pull values from the URL. %cookie values will not work for anonymous users however, since it will not work with the Drupal caching system (or it would actually show a user's data to other users).
Comment #3
quicksketch