This topic contains 2 replies, has 0 voices, and was last updated by chanarbon 7 years, 6 months ago.

  • Author
    Posts
  • #5551 Score: 0

    jmessersmith
    • Contributions: 0
    • Level 1

    When you customize a form and add buttons, there is a “display as”. I want to add a button and display it as menu. Can that be done within Suitescript?

    Code:
    var script = “alert(‘Hello World’)”;

    form.addButton(‘custpage_custombutton’, ‘Click Me’, script);
    Thanks,

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

  • #5552 Score: 0

    starlingMark
    • Contributions: 0
    • Level 1

    Hey Jason,

    Unfortunately not. You’ll have to either make a button or use some inline html to generate your own menu-like layout.

  • #5553 Score: 0

    chanarbon
    • Contributions: 0
    • Level 1

    Agree with Mark. This would require you to use user event script on Before Load, Get the form object parameter on the beforeLoad function, perform nlobjForm.addButton() and nlobjForm.setScript()

You must be logged in to reply to this topic.