2

I have a element of type dropdown I would like to disable in an InfoPath form based on a user's group membership. When I use the below code it works in FF but not in IE 10.

$("#ctl00_m_g_480f90e8_e144_49f7_818e_674ef1e6b705_FormControl0_V1_I1_D3").prop("disabled",true);

Thanks in advance

5
  • Why don't you use the regular InfoPath way to disable the control? Why would you want to use jQuery in the first place?
    – teylyn
    Commented Jan 11, 2014 at 4:40
  • sorry didn't elaborate. Can InfoPath disable based on username or groups? Cheers
    – naijacoder
    Commented Jan 11, 2014 at 5:04
  • Yes it can. Why don't you post the real question.
    – teylyn
    Commented Jan 11, 2014 at 7:26
  • Thanks teylyn. I came across this : info.akgroup.com/blog-0/bid/69277/…
    – naijacoder
    Commented Jan 12, 2014 at 1:14
  • Can you please update your question to state the real issue. It looks like you want to hide parts of the form based on a user's group membership. So ask that.
    – teylyn
    Commented Jan 12, 2014 at 2:06

1 Answer 1

0

Use jQuery(selector).attr("disabled","disabled") and jQuery(selector).removeAttr("disabled"), then it will work in IE as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.