Skip to Content

on submit button not working

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 01, 2013 at 07:20 AM

    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 .

    Add comment
    10|10000 characters needed characters exceeded