Skip to main content
Nintex Community Menu Bar

Clearing a list lookup field based on a radio button

  • June 4, 2018
  • 2 replies
  • 19 views

Forum|alt.badge.img+3

Hi all,

I have a form (Nintex Forms 2010) that has a radio button (options 1 and 2) and two list lookup fields (A and B). I would like to clear A and B when the option at radio button is changed.

I used the code below, but do not work

 

NWF$(document).ready(function()

{

var choice = NWF$("#" +Tipo);

choice.change(function()

{

NWF$("#" + ClassA).val('');

NWF$("#" + ClassB).val(''); ; }

);

} );

  

Any idea?

2 replies

Forum|alt.badge.img+7
  • Nintex Partner
  • June 5, 2018

NWF$("#" + ClassA).parent().find('select').val([]);


Forum|alt.badge.img+3
  • Author
  • June 5, 2018

Thanks so mach Philip.