Skip to main content
Nintex Community Menu Bar

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

  • May 17, 2017 10:40 PM UTC
  • 3 replies
  • 29 views
  • Translate All

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 1:26 PM UTC

following should work

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

Forum|alt.badge.img+2
  • Author
  • May 18, 2017 11:41 PM UTC

Thanks Marian,

This is wonderful. A perfect solution.

I appreciate.

Translate

Forum|alt.badge.img+14
  • Scholar
  • May 19, 2017 7:25 AM UTC

good news.

please mark the answer correct

Translate