Skip to content

Using custom scripts in custom links #7956

Answered by drmsoffall
zshorvat asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure about directly executing a script via GET, but you can pre-populate a custom script form by specifying the field values in the URI. For example, if your script had an ObjectVar called mydev and the link was on a device, you could provide the pk by appending ?mydev={{ obj.id }} to the script URI when building the link. This would pre-select that object, but the user would still have to click the Run button to execute it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zshorvat
Comment options

Answer selected by zshorvat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants