I'm setting up a ubercart setup including webform - I need the customer to pay for a service and then they will be granted access to the booking webform which they can enter date they require the service, but I only want them to be able to send it once - is this possible? I saw that I can add an expiry on the webform for a day or week but that is not what I need, as they may not decide to book the service for a while after paying.
Comments
Comment #1
quicksketchUnder "Webform advanced settings" on the node edit form, there's an option to set the submission limit to "1 ever". Would this not work?
Comment #2
rossoe commentedexcellent, I'll need that - however I then need it to be reversed when they make a new payment for the same service.
so they are paying for one car wash, then once they have submitted the webform '1 time' they have to pay again before they can send another booking
Comment #3
rossoe commentedTo be more precise, as soon as my user pays for a service they turn into the role 'customer' and can then access the webform, I need the submit on the webform to reverse that role to 'authenticated user' until they buy the service again.
would this be difficult to implement ?
Comment #4
quicksketchAny such implementation would require custom coding, either through the Additional Processing PHP field in the webform configuration, or through hook_form_alter(). Support for writing custom code is not provided in the Webform issue queue.