Skip to main content
Nintex Community Menu Bar

Controls - Disabled vs Read Only

  • September 13, 2017
  • 4 replies
  • 251 views

Forum|alt.badge.img+4

hi All,

i need to disabled certain control in my approval form, but if i set the control to disabled and approved, the value will save as blank.

if there anyway which i can set the control to disabled or read only but then it will not change the value to blank when its approved ?

thanks

4 replies

Forum|alt.badge.img+9

In Nintex Forms, if you disabled a field by a form rule the value will not be saved.

1. Let the field Enabled and add JavaScript code to the Form Settings.
    NWF$('#'+txtField1).prop("readonly", true);
    where 'txtField1' is the Client ID JavaScript variable name.

2. Also, You can use 'Calculate Value' control that connects to your list field and use workflow to update field value.

   So that it will displays the value when it has some value.


Forum|alt.badge.img+14
  • Scholar
  • September 13, 2017

you can place control into a panel and apply rule on the panel.


Forum|alt.badge.img+3

The best way to make control ready only and save the value is, Write a rule saying if the control contains some value the disable the control. then it works


Forum|alt.badge.img+4
  • Author
  • September 26, 2017

Hi All,

i found the solution. we just need to set the control setting "Advanced -> Control Mode" to either Auto / Edit / Display.

thanks