I am working with SP2013 with InfoPath Designer 2013.
I have created a browser based InfoPath form with certain field. I have kept this form on Page using InfoPath Form WebPart. Now I want to validate the field of InfoPath field using JavaScript code.
I just want to ensure that none of my fields are empty at the time of submitting the form.
I know this can be done using InfoPath Rule, but somehow the requirement is to do this with JavaScript code. I just need to add some sort of JavaScript code in the CEWB on the page and my validation should work.
Any help or references are most welcomed.