Today new issue and solution 🙂 small article but since it took time to solve me so thought to share.
- If you inspect Save button on publishing page. You will find that CoreInvoke() function is getting called on button click as shown in fig.
- We have to override CoreInvoke() method.
CoreInvoke = function(action, target)
- This method should be executed when user click Save button on when publishing page is in edit mode.
- Put the following code in your js. The code should be executed only when action is PageActionClick.
//override the CoreInvoke function
CoreInvoke = function (action, target)
If(action == ‘PageActionClick’)
//Your validation code here
If($(“input[type=’radio’]:checked”).length == 0)
alert(‘No radio button selected’);
// ooBCoreInvoke function here to save form
Thanks for reading
Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more. If you have any suggestion / feedback / doubt, you are most welcome.
Stay tuned on Knowledge-Junction