Skip to main content
Nintex Community Menu Bar

Clearing a list lookup field based on a radio button

  • Jun 4, 2018 7:03 PM UTC
  • 2 replies
  • 29 views
  • Translate All

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
  • Jun 5, 2018 4:13 AM UTC

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

Translate

Forum|alt.badge.img+3
  • Author
  • Jun 5, 2018 12:32 PM UTC

Thanks so mach Philip.

Translate