Show / Hide Details Panel (Toggle the details-on-demand panel on\off) :
if (Document.ActivePageReference.DetailsOnDemandPanel.Visible == False):
Document.ActivePageReference.DetailsOnDemandPanel.Visible = True
else:
Document.ActivePageReference.DetailsOnDemandPanel.Visible = False
Steps in detail:
- Insert Text Area
- Edit Text Area
- Click on ‘Insert Action Control’. You can find this in Text Area title bar
- Action Control dialog is displayed
- Select ‘Script’, by default ‘Actions’ will be selected.
- Fill in the ‘Display Text’
- Select Link for ‘Control Type‘
- Click on ‘New’ to create new script
- ‘New Script’ dialog box is displayed
- Fill in the script details as shown in above image