Score:0

Webform Option Limit: How to change the number to subtract from the limit

ar flag

I've used the option limit handler before without problems, but now I have a new scenario. I have a limit of 200 seats and each user can reserve up to a maximum of 5 seats. The user chooses the number of seats from the element seats_number(of type number).

Example: 200 seat limit, user selects 4 seats, new limit is 200-4=196.

What should I change in the settings handlers?

Thank you so much for help me.

id flag
The maintainer said “This will require a similar solution to the options limits handler but built via custom code or dedicated contribs module.” https://www.drupal.org/project/webform/issues/3382806 Are you asking for help with authoring that module?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.