Hyperlink control setting

  • 24 August 2016
  • 1 reply
  • 2 views

Badge +1

In Hyperlink control, is it possible to change the wording from "Type the Web address" to "URL"?

I did not find this configuration in control settings. How can I change it?

190251_pastedImage_0.png

Version: Nintex Forms 2013


1 reply

Badge +11

Hi Toby,

just curious, where does this requirement come from?

I don't think there is out-of-the-box functionality for this. You need some JS/Jquery code to change this text.

Go to "Form Settings" and add this little code snippet inside the "Custom JavaScript" area:

NWF$(document).ready(function() {

var oldString = 'Type the Web address';

var newString = 'Type the Web URL';

var html;

var newHtml;

 

    NWF$('.ms-formdescription').each(function() {

 

        html = this.innerHTML.toString();

        if (html.indexOf(oldString) !== -1) {

            newHtml = html.replace(oldString, newString);

            this.innerHTML = newHtml;

        }

    });

});

This will change this text on every hyperlink control on your form!

Cheers

Philipp

Reply