Remove hyperlink address default text

Forums General discussion Remove hyperlink address default text

Viewing 5 reply threads
  • Author
    Posts
    • #33308
      MikeS
      Participant

      Alex,

      Do you know of a way to remove the

      http://

      inserted in a hyperlink Web address field when a New form is loaded? This will streamline copy and paste for new users.

      Thanks
      MikeS

      • This topic was modified 2 years, 11 months ago by MikeS.
    • #33313
      Alexander Bautz
      Keymaster

      Just add this to your Custom JS:

      jQuery("#dffs_YourFieldInternalName input:first").val("");

      Replace YourFieldInternalName with your actual hyperlink field internal name.

      Alexander

    • #33315
      MikeS
      Participant

      Works great!

      Thanks,
      MikeS

    • #33800
      MikeS
      Participant

      Alexander,

      How can I modify the above to also pre-fill the Description field in SharePoint with the same text on New form entries?

      Thanks,
      MikeS

    • #33802
      Alexander Bautz
      Keymaster

      Hi,
      This code only fill the first input – notice the “input:first”:

      jQuery("#dffs_YourFieldInternalName input:first").val("The value you want to fill in");

      If you want to fill the same in both inputs you can just use this:

      jQuery("#dffs_YourFieldInternalName input").val("The value you want to fill in");

      If you however want to add a text to the last you use this:

      jQuery("#dffs_YourFieldInternalName input:last").val("The value you want to fill in");

      Let me know if you have any questions.

      Best regards,
      Alexander

    • #33831
      MikeS
      Participant

      Works great Alex!
      Thanks,
      MikeS

Viewing 5 reply threads
  • You must be logged in to reply to this topic.