Nintex Form : Clear Text Value based on checkbox selection ?

  • 15 September 2017
  • 4 replies
  • 13 views

Badge +4

hi All,

Is it possible for us to clear the multiline textbox value when the checkbox selection changed ?

thanks


4 replies

Userlevel 5
Badge +14

following should work

varCB and varMLTB are javascript variables assigned to checkbox and multiline text box controls

NWF.FormFiller.Events.RegisterAfterReady(function () {  
   NWF$('#'+varCB).change(function(evt){
       if(evt.target.status){    //if checkbox checked on
             NWF$('#'+varMLTB).val('');      
       }
  })
})
Badge +4

hi Marian,

i tried your suggestion but too bad, its not working.

and i tried the below code as well,

NWF$(document).ready(function()
{
       NWF$('#'+A1).change(function()
       {
            NWF$('#'+A1A).val('');
       });

});

note: the code in Bold not working, anyone can help ?

Badge +4

hi All,

to add on, my textbox is multiline text box - rich text

thanks

Badge +6

Use the following code :

NWF$(document).ready(function()
{
NWF$('#'+A1).change(function()
{
var txtArea = NWF$('#'+ A1A).closest('tr').find('div[id$="_inplacerte"]');
txtArea.html('');
});
});

Refer : https://community.nintex.com/thread/1518

Reply