Hello all
Excuse my English but it is a google translation.
Suppose I have a webform with radio buttons that indicate hours of appointment. For example: 10h 11h 12h etc.
If a person booked to 10am, I'd like other people see the radio button 10am closed.
Could you tell me how or direct me to take?
Thank you

Comments

pitav’s picture

Component: Miscellaneous » Code
quicksketch’s picture

This is not possible with Webform, other than manually coding a custom module or component.

pitav’s picture

Thank you for your answer. I will find a solution outside webform.

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

thijsvdanker’s picture

@pitav: I have used this javascript snippet to disable checkboxes (works for radios as well).

  //Disable form fields with the %disabled% token in their values
  $('label:contains("%disabled%")').each(function(){
	  $('#'+$(this).attr('for')).attr('disabled', 'true');
	  var content = $(this).html();
	  $(this).html(content.replace('%disabled%', ''));
  });

Usage: use %disabled% in the value part of your option ( eg. 0|Readable text here %disabled% )
This is far from optimal, and could probably be (speed) enhanced..