Several Save buttons
Dear SPForms Team
On my forms I have several Save buttons, such as approve, save (doesn't change status), reject etc. Some fields on the form are not manadatory, if the request gets rejected but if it gets approved some fields have to have some value.
How to I access the different save buttons in javascript. I can't see any ID's.
Thanks for your help
On my forms I have several Save buttons, such as approve, save (doesn't change status), reject etc. Some fields on the form are not manadatory, if the request gets rejected but if it gets approved some fields have to have some value.
How to I access the different save buttons in javascript. I can't see any ID's.
Thanks for your help
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You should put your code into OnClick property of a particular button in Forms Designer and it will be executed when a user clicks this button.
You should put your code into OnClick property of a particular button in Forms Designer and it will be executed when a user clicks this button.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You can define a global function in general JavaScript following way:
And call it in OnClick handlers.
You can define a global function in general JavaScript following way:
Code: Select all
window.globalFunction = function() {
// Your code here
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests