Also is it possible to view script parameters in the Data Viewer? I have FMP13 Advanced.
You can see script parameters in the data viewer if you also run the script when the debugger is enabled. Click the button and when the script step that uses Get ( ScriptParameter ) pops up in the script debugger, enter the same expression Get ( ScriptParameter ) into the data viewer as a watch expression and you'll see what value is returned.
The trick with script triggers on popovers is that you don't normally want to set them up on the popover button, but on the popover panel. In Layout mode, open the popover, right click the border of the popover panel and you should see what is probably an OnObjectEnter trigger set on the panel and if you click "select", you'll get a dialog where you can see what expression or value was used to specify as the script parameter.
Not finding anything. When I right click on either of these, I see in the list of choices a "Portal Setup" for the inside-selected object. I didn't think that was what you meant.
So on the outer-object, I get as a choice on right click "PopOver Setup" which can have a Script Parameter but doesn't already have one defined.
OR, on the same right click on the outer-object, I can select Set Script Trigger which also doesn't have a Parameter set. Dead-ends everywhere.
I kind of think that there may be a parameter set somewhere else, and it is reading it here. But I'm clueless as to where.
No it wasn't. Does not sound like you clicked the border of the popover panel if you see portal setup.
I can select Set Script Trigger which also doesn't have a Parameter set.
But do you see that a script trigger such as OnOBjectOpen was set? As I stated previously, to see the script parameter, you would click the select button to open the dialog where you select a script for the script trigger. There's an "optional script parameter" box inside that dialog that shows you the script parameter expression.
And if all else fails, follow the steps that I outlined for using the script debugger and data viewer.
That will show you bot the script parameter value and the exact name of the script trigger used to perform the script.
When I click on the Panel/Popover Frame, this is what I see...(nothing selected).
I FOUND IT....
Layout Mode> Double click the popOver button, which displays the popover....
Double click the FIELD which is inside the portal, which is inside the PopOver. The Field has a script parameter. I found it using the data view and Debugger as you mentioned. The script didn't fire until I made a selection inside the popover. That's what clued me in to just the field itself, not the popover, or button. The filed has a PerformScript selected. Clicking Specify on that, and there it was.
Thanks for your help PhilModJunk :)