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

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

Jump to solution

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.

Labels: (1)
Reply
3 Replies
emha
Nintex Newbie

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

Jump to solution

following should work

NWF$('#'+fldSiteAddress).val("");
NWF$('#'+fldSiteAddress).siblings('input').val("");
Reply
riteshratna
Nintex Newbie

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

Jump to solution

Thanks Marian,

This is wonderful. A perfect solution.

I appreciate.

Reply
emha
Nintex Newbie

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

Jump to solution

good news.

please mark the answer correct

0 Kudos
Reply