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 have a webform on my site with the settings of "Per user submission limit" to "Limit each user to 1 submission(s) ever " so I tested this out and after I submit the form I do get the message "You have already submitted this form." but the form is gone and all you see is that message and the title of the form. I'd like to have a block show up where the form should be or if there's a way to display the form without the submit button that would be an option as well. Any help would be greatly appreciated. Thanks in advance.
Comments
Comment #2
dev18.addweb CreditAttribution: dev18.addweb at AddWeb Solution Pvt. Ltd. commentedTo place the block when user form submission limit has reached, please add the following code in your custom module:
Thanks
Comment #3
fineartist99 CreditAttribution: fineartist99 as a volunteer commentedIn my custom module, I don't have any custom modules nor do I know how to develop one. I appreciate the reply but I don't know what to do with it. Maybe I'll try placing that within the actual form itself via php code and see what happens. I'll let you know.
Comment #4
Subhransu.addweb CreditAttribution: Subhransu.addweb at AddWeb Solution Pvt. Ltd. commentedHi fineartist99,
Steps for creating custom module.
1) Go to modules directory and create folder call custom(i.e. sites/all/modules/custom).
2) In custom folder create one .info file like custom.info, and write below code
3) Create another file called custom.module in custom directory. Inside the custom.module write the below code
4) check your project module page (i.e. /admin/modules) and your module is available.
>> put above code with some modification
If you have further query please feel free to ask me.
Thanks!
Comment #5
Liam MorlandIf you need more help, please re-open.