Copy link to clipboard
Copied
Background : I want to create or add my custom action to context menu shown when you right click on a field in PDF.
Approach : Using Javascript is it possible to add my custom actions to this field context menu?
Use the app.popUpMenu() function.
Add a script like this to the MouseUp Event on a field. It triggers off of Ctrl/Cmd-Click
if(event.modifier)
{
var cRtn = app.popUpMenu(...);
switch(cRtn)
{
... Process Results ...
}
}
Copy link to clipboard
Copied
Background : I want to create or add my custom action to context menu shown when you right click on a field in PDF.
Approach : Using Javascript is it possible to add my custom actions to this field context menu?
Use the app.popUpMenu() function.
Add a script like this to the MouseUp Event on a field. It triggers off of Ctrl/Cmd-Click
if(event.modifier)
{
var cRtn = app.popUpMenu(...);
switch(cRtn)
{
... Process Results ...
}
}
Copy link to clipboard
Copied
No, that's not possible. You can do it if the user holds down Ctrl or Shift while clicking the field, though.
Copy link to clipboard
Copied
Use the app.popUpMenu() function.
Add a script like this to the MouseUp Event on a field. It triggers off of Ctrl/Cmd-Click
if(event.modifier)
{
var cRtn = app.popUpMenu(...);
switch(cRtn)
{
... Process Results ...
}
}