Using Javascript functions
-
I am not sure how to follow using the Javascript instructions and examples. I tried using a basic linkage for the onclick event on the custom button I added to the form. Nothing is happening.
In the EDIT FIELD, I have the name which shows ok on the button on the form, and I placed the name ppolicy on the ONCLICK box, this is the JS function I want to call.
Name Privacy Policy
OnClick ppolicyThe function I added to the Javascript page under Form Options -> JavaScript.
// Occurs before the form is loaded
function before_load() {}
// Occurs just before submitting the form
function before_submit() {
// IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don’t need to return any value if you don’t want to stop the submission.
}// Occurs just before resetting the form
function before_reset() {}
//Privacy Policy button
function ppolicy() {
location.href=”https://www.mobileyezusa.com/privacy-policy/;”
}
- The topic ‘Using Javascript functions’ is closed to new replies.