When running the onFormRequest hook, I’m returning the navslug for success or fail back to BF. I have the path action set up, but I can’t figure out the syntax for using model data after the “path:” option.
Can you post a bit more detail? What are you trying to achieve overall? and what is the exact bit of code you are returning from FileMaker?
The onFormRequest script adds “Result”: “success” or “Result”: “fail” to the $$BF_Model variable depending on the outcome of that script. What I want to do next is the equivalent of:
{
"action": "path",
"options": {
"path": model.Result
}
…based on the returned result. The action is executing just fine, I just need to tell it where to go properly.
(success and fail are both navslugs)
Why not just use the BF_SetAction_path
Custom Function to redirect the page on the server side? You shouldn’t need to set anything into the model for this.
1 Like
Well then, that’s what I will do! Thanks.
For anyone following this thread, here’s how I implemented the $$BF_Actions variable.