cancel
Showing results for 
Search instead for 
Did you mean: 
bharathi
Nintex Newbie

disabling the dropdown using jquery

NWF$('.controlclass').prop('disabled',true); when i used this property the control is disabling but when i clicked the save button its not saving any value.for dropdown and check box

Labels: (1)
0 Kudos
Reply
5 Replies
lakshminarayana
Nintex Newbie

Re: disabling the dropdown using jquery

Hi Bharathi S‌,

Default save button wont allow to save you disabled control values. what you can do

1. Use rules to hide/show the control to only specific people.

2. Use control settings - Appearance - Enabled - Put your expression.

3. Write code to Enable it and add to the Form Settings - Custom Javascript .

    NWF$('#'+txtDisabled).prop("readonly", true);

Thanks,

Lakshmi Narayana C

0 Kudos
Reply
bharathi
Nintex Newbie

Re: disabling the dropdown using jquery

for the text box if i made readonly then its saving the value like that any property is there for dropdown and check box

0 Kudos
Reply
lakshminarayana
Nintex Newbie

Re: disabling the dropdown using jquery

try with NWF$("#" + control).attr("disabled", false);

You can use rules to set the controls to disabled which works in many such cases. It will be much easier than setting in JS.

0 Kudos
Reply
bharathi
Nintex Newbie

Re: disabling the dropdown using jquery

i have to change the values of the drop down using jquery if i am using the rules i am doing manually its working if i am handling through jquery its not working

0 Kudos
Reply
lakshminarayana
Nintex Newbie

Re: disabling the dropdown using jquery

  

Reply