Skip to main content
Nintex Community Menu Bar

Clear the 'Text to display' field of Hyperlink control using JavaScript

  • May 17, 2017
  • 3 replies
  • 14 views

Forum|alt.badge.img+2

I have a Hyperlink control on the form. I want to clear both the 'Web Address' and the 'Text to display' field using JavaScript.

The control settings are as below -

I amable to clear the 'Web Address' field using -

NWF$('#' + fldSiteAddress).val('').trigger('change'); 

However, no matter what I try, I am just not able to clear the 'Text to display' field.

Any help will be appreciated.

Thanks.

3 replies

Forum|alt.badge.img+14
  • Scholar
  • May 18, 2017

following should work

NWF$('#'+fldSiteAddress).val("");
NWF$('#'+fldSiteAddress).siblings('input').val("");

Forum|alt.badge.img+2

Thanks Marian,

This is wonderful. A perfect solution.

I appreciate.


Forum|alt.badge.img+14
  • Scholar
  • May 19, 2017

good news.

please mark the answer correct