I want to control the dates which can be choosen in webform date field (for example that next week monday,tuesday, cannot be clicked (because these event dates are allready fully booked)), is this possible within webforms?

Comments

quicksketch’s picture

Unfortunately this functionality is not supported in the Webform module. Considering you'd need some advanced logic to determine if a date is "booked" or not, I don't think this is a good fit for the main Webform project. In order to accomplish this, I think you'd need a combination of a custom module that used hook_form_alter() to modify the form (and add additional validation), as well as some custom JavaScript to disable dates that aren't supported.

Generally questions that get this specific can't be answered in the Webform issue queue. We help with UI and general questions, but when it gets into custom coding you're on your own.

quicksketch’s picture

Status: Active » Closed (fixed)

I hadn't realized how old this issue was. I'm going to close it directly because the solution to this problem would require custom coding.