Hello everyone!
I ran into a problem which I currently have no idea how to resolve.
I have a script using an API call which logs the user into external system. This is not an automation script, but the script from a scripting extention. This is because fetch() function behaves differently and only passes authentication data when used in scripting extention. I can run the script pressing a field button in a grid layout.
Data grid:
Now I need to provide the user with an interface button that would finally resulted with logged in state. But this seems not as easy as it can be imagined. It is not possible to directly call a script with a button action as it is only capable of running an automation script, not scripting extention.
Interface:
However, using an interface button I can change the state of a checkbox field of the same record where the field button is, but I do not get the idea how to bind these two so when I tick a checkbox the filed button would be pressed. As far as I know a field button has no state feature.
So, any ideas how to workaround this issue? Your suggestions are very much appreciated.
PS: added some visuals
Regards,
Andrey