Skip navigation
Currently Being Moderated

[ID JS] convert to button

Jul 3, 2012 5:42 AM

Tags: #javascript #button #convert

Hi All.

 

I'm locking for the method that make the opposit action of "Button.convertToObject ()"

I need to convert pageItems in buttons, is it possible?

 

thanks

 

Ivan

 
Replies
  • Currently Being Moderated
    Jul 9, 2012 12:53 PM   in reply to fivan

    var myMenuCenter=app.menuActions.item("$ID/$$$/Command/Destroy FormField");

    myMenuCenter.invoke();

    You will need to select the object and then try something like this. There is probably a better way to do this but this should get you pointed in the right direction. This is in CS6

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 3:44 AM   in reply to fivan

    Two alternatives:

    1) Add a button to the object: obj.buttons.add()

    2) Create a new button with the same properties as the page item.

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 4:05 AM   in reply to fivan

    I believe that's correct.

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points