cancel
Showing results for 
Search instead for 
Did you mean: 

on submit button not working

former_member197696
Participant
0 Kudos

Hi All ,

            I am working on an adobe form where i have to validate a checkbox when user clicks submit . below is my code can anybody help me with the answer

this is for the onclick action of the submit button lang is JS

if ( checkbox.rawvalue !== 1 ) ; {

" some message } {

app.eval("event.target.SAPSubmit();"); }

Code works fine if i use "app.eval("event.target.SAPSubmit();");" indivudually and validation seperatly issue is when i try to put validation and submission .

thans in advance

Kishore

Accepted Solutions (1)

Accepted Solutions (1)

former_member197696
Participant
0 Kudos

solved my self

solution- remove semicolon 

script - javascript

if ( checkbox.rawvalue !== 1 )  {

" some message" } else {

app.eval("event.target.SAPSubmit();") }

NOTE- importing  webdynproscript from utilities is mandatory .

Answers (0)