1

I tried to do validation using Javascript on smart capture. When I submit the form it does not seem that the function is running.

My code:

Form tag:

<form id="myId" class="smartcapture-content-wrapper fuelux" onsubmit="return valid();" novalidate="novalidate">

Javascript function:

<script>
function valid() {
    if(SOME IF)
    {
        return false;   
    }
    return true;

}
</script>

How can I make it work?

Is there another way to do the validation?

3
  • 2
    Is the above JavaScript code the actual code that you're using or has it been truncated for brevity? The online documentation has an example you can follow: help.salesforce.com/…
    – Mark G
    Commented Mar 4, 2019 at 18:27
  • This Javascript code is abbreviated for example. Commented Mar 5, 2019 at 9:14
  • @DanielRomano Do you see any errors in the JS using Google a chrome extension developer tools? Commented Apr 10, 2019 at 3:11

0

You must log in to answer this question.

Browse other questions tagged .