This topic contains 4 replies, has 0 voices, and was last updated by k_dunc 7 years, 3 months ago.

  • Author
    Posts
  • #18308

    k_dunc

    Hi all,

    I have a simple STATICLIST Sublist containing a URL column (FieldType.URL). How can I stop displaying the actual URL, but instead show a ‘Click here’ type message? Do I need to change the field to an inline HTML field first perhaps?

    Thanks,

    Kirk.
    This is a cached copy. Click here to see the original post.

  • #18309

    AE Cloud Consultants

    Hi Kirk,

    There is a field on the Custom Body Field record called Link Text which will control what is displayed on the link tag created for your URL.

    If you want the text to be more dynamic you might need to go down the road of inline HTML, but for a static Click Here display, it will do the trick.

  • #18310

    k_dunc

    Thanks for this AE Cloud Consultants. Appreciate it.

    I do have that field set, so in my Vendor record I have a nice ‘Click here’ type message. What I was hoping to get answered is, using SuiteScript 2.0, in my Suitelet where I am displaying the results of a search in the Sublist, I want to display a ‘click here’ type of message rather than the actual URL that is stored in my Custom Body Field on the Vendor record. I’m sort of guessing I need to change the field type from URL to InlineHTML?

    Thanks again.

  • #18311

    AE Cloud Consultants

    There’s also a linkText field on the serverWidget.Field object which according to the documentation controls the text displayed for URLs.

    Example from the SuiteScript 2.0 help

    Code:
    var form = serverWidget.createForm({
    title : ‘Simple Form’
    });
    var field = form.addField({
    id : ‘textfield’,
    type : serverWidget.FieldType.URL,
    label : ‘URL’
    });
    field.linkText = ‘NetSuite’;

  • #18312

    k_dunc

    That worked perfectly AE Cloud Consultants. Thanks so much. Greatly appreciate it.

You must be logged in to reply to this topic.