Have a problem with a form, when the user login and go to the specific page. When clicking the submit button the window auto refresh and all data is flushed nothing is trigged in the BF helper. But then if the user go back to the same form page again, it works as it should. But if the user logout and login again same problem until the user go back to the same page again. Somebody has seen this before?
Hey Jesper,
You can check the console to see if there are any errors or information about what might be happening with the submit button. Also, if you don’t mind posting a photo of the button’s code it might help me find the issue.
I get this error code in the console:
vue.esm.js:1897 TypeError: this.$refs.child.clearValidationErrors is not a function
at a.clearValidationErrors (vfg.js:7:26861)
at vfg.js:7:20338
at e.exports (vfg.js:7:23697)
at e.exports (vfg.js:7:8309)
at a.clearValidationErrors (vfg.js:7:20285)
at a. (vfg.js:7:19180)
at Array. (vue.esm.js:1989:1)
at Je (vue.esm.js:1915:1)
Here is the code for the button:
{
“actions”: [{
“action”: “function”,
“function”: “model.isLoading = true”,
“options”: {}
}, {
“action”: “runOnCompleteHook”,
“options”: {}
}, {
“action”: “function”,
“function”: “model.isLoading = false”,
“options”: {}
}],
“buttonClasses”: “btn btn-primary btn-block”,
“disabled_calc”: “model.isLoading”,
“icon_calc”: “model.isLoading ? ‘fa fa-circle-o-notch fa-spin’ : ‘’”,
“label”: “”,
“styleClasses”: “col-md-12”,
“submit”: true,
“text”: “Boka”,
“type”: “button”
}
hi, if im understanding correctly. you want to run a utilityhook. we have a utilityhook snippet and you replace type
with the name it would look like:
{
"action": "runUtilityHook",
"options": {
"type": "runOnCompleteHook"
}
}