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

Nintex Form : Clear Text Value based on checkbox selection ?

Jump to solution

hi All,

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

thanks

Labels: (1)
0 Kudos
Reply
4 Replies
Automation Master
Automation Master

Re: Nintex Form : Clear Text Value based on checkbox selection ?

Jump to solution

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('');      
       }
  })
})
Reply
goh6613
Nintex Newbie

Re: Nintex Form : Clear Text Value based on checkbox selection ?

Jump to solution

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 ?

Reply
goh6613
Nintex Newbie

Re: Nintex Form : Clear Text Value based on checkbox selection ?

Jump to solution

hi All,

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

thanks

0 Kudos
Reply
sakhatri
Nintex Newbie

Re: Nintex Form : Clear Text Value based on checkbox selection ?

Jump to solution

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