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

  • Author
    Posts
  • #21869

    jmessersmith

    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.

  • #21870

    starlingMark

    Hey Jason,

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

  • #21871

    chanarbon

    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.