CS6 form validation script code does allow return to form o get missing entry and then sends

When submitting a form with a missing entry the validation code missing info popup window works correctly. However when you click OK to return to the form to correct it, the form is sent and doesn't return to correct the information. Something is missing in the Script code. I am using CS6 and the form validation software.
Jad92009

I am using the software that comes with CS6 for designing and validating a form. I am not using Spry. Following is the code and the script:
<input name="submit" type="submit" onclick="MM_validateForm('first-name','','R');MM_validateForm('last-name','','R');MM_vali dateForm('company','','R');MM_validateForm('zip-code','','NisNum');MM_validateForm('phone- number','','RisNum');MM_validateForm('email-address','','RisEmail');return document.MM_returnValue"   value="Submit" />
<script type="text/javascript">
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
</script>
the URL is http://ddi.netouch.com/form-design-support1.asp.
Your help would greatly appreciated.
Jim

Similar Messages

  • Sap script convert to pdf and then send to email

    Hi,
    good day sap guys
    ive dev the sap scipt for customer statemnet one which is used the t.code is f.27.
    i need to convert the sap script to pdf and then send to email.
    plz let me know..
    how to do it.
    regards
    chandu

    Hi,
       I script program use the following (go to the "call function 'CLOSE_FORM'")
    data: binfilesize type i.
      data: pdftab type table of tline with header line.
      data: i_itcpp like itcpp.
      data: g_t_otfdata type standard table of itcoo with header line.
      call function 'CLOSE_FORM'
       IMPORTING
         RESULT  = i_itcpp
          tables
            otfdata = g_t_otfdata[]
          exceptions
            others  = 1.
      if sy-subrc ne 0.
        retcode = sy-subrc.
        perform protocol_update.
      endif.
      call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    importing
    bin_filesize = binfilesize
    BIN_FILE =
    tables
    otf = g_t_otfdata[]
    lines = pdftab[].
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    concatenate file_path  '.pdf' into filename.
    call function 'GUI_DOWNLOAD'
      exporting
      bin_filesize = binfilesize
      filename = filename
      filetype = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
      tables
      data_tab = pdftab[]
    FIELDNAMES =
      exceptions
      file_write_error = 1
      no_batch = 2
      gui_refuse_filetransfer = 3
      invalid_type = 4
      no_authority = 5
      unknown_error = 6
      header_not_allowed = 7
      separator_not_allowed = 8
      filesize_not_allowed = 9
      header_too_long = 10
      dp_error_create = 11
      dp_error_send = 12
      dp_error_write = 13
      unknown_dp_error = 14
      access_denied = 15
      dp_out_of_memory = 16
      disk_full = 17
      dp_timeout = 18
      file_not_found = 19
      dataprovider_exception = 20
      control_flush_error = 21
      others = 22
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • Iphoto allows you to share photos by selecting them and then emailing as an attachment.  I'm not able to do that now, curser isn't appearing in the email address box when I attempt to address my email.  Photos are attaching but not able to include an addr

    iphoto allows you to share photos by selecting them and then emailing as an attachment.  I'm not able to do that now, curser isn't appearing in the email address box when I attempt to address my email.  Photos are attaching but not able to include an address.

    Windows Phone 8.1 is so full of surprises and opens the Windows Phone faithful up to a new world of apps.
    Video editors and
    file managers are just some of the new app categories possible thanks to Windows Phone 8.1. We’ve seen an official video editing app from Microsoft already, but today we finally get Files – the official file manager for Windows Phone.

  • Why does my camera get purple streaks and then freezes

    why does my camera get purple streaks and then freezes

    My friend and I both work in a hospital and we go in out of signal continuously through out the day.  Our problem is so bad that by mid afternoon our phone batteries are down to 20% as the phone is continuously searching for signal.  Im on EE and their only advice was to reset the network settings, thats fine when you only have to do it once but Im doing it up to 20 times in 1 day.  It makes me hate my iphone for the first time in 5 years.

  • I deleted my albums from Facebook while cleaning my iPhoto archive.. Does anyone know if i can get them back and how? thanks!

    i deleted my albums from Facebook while cleaning my iPhoto archive.. Does anyone know if i can get them back and how? thanks!

    while cleaning my iPhoto archive
    What do you mean by that?  Do you mean you deleted photos or albums from your iPhoto Library?
    You best solution is to use Time Machine to restore your library from just before you "cleaned your iPhoto archive".

  • After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    We can't know anything. You have not provided any useful details like system information or the install logs.
    Mylenium

  • Why Does IT Take SOOOOO Long To Get New Shows And Podcast Updates!!!!!

    Why Does IT Take SOOOOO Long To Get New Shows And Podcast Updates!!!!! It seems to me that it takes and unusually long time for TV shows to be uploaded to itunes and it takes FOREVER (VH1) to get Podcast updates. Also I notice that Vh1's Best Week Ever is a hit or miss deal. Some weeks it's on iTunes and some weeks it's not......why?
    Paul

    The iTunes store simply provides a link to the originating podcast server.
    When the podcast owner puts a new episode up, it is available.

  • When I wake my iMac from sleep, the wireless does not connect.  I have to shut shutdown and then restart and then it connects.  I am running Lion 10.7.3  Any thoughts?

    When I wake my iMac from sleep, the wireless does not connect.  I have to shut shutdown and then restart and then it connects.  I am running Lion 10.7.3  Any thoughts?

    Been waiting along time for this problem to be fixed. Unfortunately the update hasn't help at all and even made the situation worse. Now my airplay connection from iMac to stereo abruptly stops after about 10-15 min. so I have to go over and quit wifi, start it up and find my airport network. Not sure why it always has a problem with the apple airport network. My neighbor's pc network is always there.

  • How to connect A extreme to A express in WDS so i can use A express as LAN port with RJ 45.  A express is old and does allow WDS, but A extreme is n technology and doesnt allow wds anywhere in configuration.  do i hvae to buy a new A extreme or new A expr

    I have an airport extreme 4th generation (n) and airport express i think model 1084, which is not n technology. I want to connect the express to extreme base station wirelessly and then use the port on express to connect a non wireless PC or TV to the internet.  I do not want to run a wire from base station to the computer and wanna use express's ethernet port as LAN port.  I understand this can be done in wds mode, but my extreme (n) does not allow anywhere to set up a wds under the airport utility.
    do i need to buy a new  express or a new extreme?  If i buy a new extreme can i connect the new extreme to old extreme base station without a wire and then use the LAN ports on the new extreme to connect to a computer or tv using rj45.
    thanks

    but my extreme (n) does not allow anywhere to set up a wds under the airport utility.
    Suggest that you download and install the more functional and useful AirPort Utility 5.6 for Mac OS X Lion , which can be used to administer both the older "g" and newer "n" devices.
    Open AirPort Utility 5.6
    Select the AirPort that you want to administer
    Click Manual Setup
    Click the Wireless tab below the icons
    Hold down the option key on your Mac while you click on the Wireless Mode selection box and the WDS setting will appear so that you can make further adjustments as needed.

  • Offline form in iPad DPS App that stores data and then sends when connected to internet

    Hi there,
    I've built an "app" using InDesign and DPS. Great, whiz bang 360 spins, video, etc, etc but at the end I would like to have a form to record the users experience on the ipad or to record their experience of an event where the iPad was used. I have created a form in Acrobat XI, exported to FormCentral as a trial, linked to the form using a web frame within InDesign and then exporting out with DPS. App works fine, can see form, enter data and submit, check data via FormCentral admin system, all good.
    However, is it possible to create the same app that works identically offline? I know the whiz bang stuff will work as it's built into the standalone app. I guess the html form will need to be stored locally, when a user submits the form it needs to write to the iPad and store locally and if/when the iPad makes a connection to the internet it can send the stored local data upto FormCentral for processing. The form would be filled in by multiple users at different times.
    From trawling the web I can see forms can write locally to the iPad but then I also see pages of code, my eyes glaze over and I run for the hills. I just wondered if there was an easy solution? If not, can this be raised as an item in the wishlist for both FormCentral/DPS/Indesign? A nice clicky interface for us "non-coding" designers.
    Any help would be most appreciated,
    Thanks,
    Rog.

    Hi Randy,
    Thanks for coming back to me on this. Instead of a html form, can a pdf form embedded within a DPS app work?
    I see that pdf forms can be filled in offline and data sent went back online but unsure as to whether this approach will work within a DPS app.
    I saw a post you responded to
    http://forums.adobe.com/message/3506205#3506205
    You mention an article to the offline form in more detail but I get a broken link.
    Thanks again.

  • Why does a movie or TV show stop during play and then takes you to the main ATV icon screen?

    This weekend while watching a movie it stopped and went directly to the main ATV screen?  Also while watching TV shows I witnessed the same issue about halfway through each.  Also, when returning to the movie or TV show it acts like the first time viewing and does not give you the option to resume playing.

    Same issue, just cuts out to black and then goes back to the home screen.  Happened about 4 times while watching one TV show. I'm using Software version 6.0 (6646.65)

  • TS1363 I downloaded the new itunes 10.6. Itunes no longer recognizes my ipod (although my computer does) when i connect it. I tried uninstalling and then reinstalling it did not correct the error. Any advice?

    I downloaded the upgraded to itunes. It is now not recognizing my ipod nano. I uninstalled the software from my Windows 7 and then reinstalled. The computer recognizes the device, but itunes still does not. Any suggestions...

    Try Here  >  iPod appears in Windows but not in iTunes

  • Why do the characters in the field of a form disappear when I attach the form to another PDF file and then save the resulting pdf?

    This just started happening and it does not happen every time I do this action.  I occasionally get the following message "An incorrect structure was found in the PDF file" and that seems to be part of the issue. Has anyone experienced anything like this?

    I found out that if I waited about 15 minutes the PDF file became normal. Thank heavens! I've now sent out my newsletter for my Quilt Club to our 90 e-mail subscribers and all of them I have heard from have gotten it the way I had written it. It must just have been a quirk that happened, but I sure am glad it fixed itself. I only have 5 more newsletters to write and then I am done. Thank Heaven. Thank you for trying to help. I was about to become even more crazed than I get when I have to publish the newsletter. I do it once a month and I never would have volunteered for the 2 year job if I had know how much work it is. My husband walks gently when he knows I am trying to put the newsletter together. I'm not usually crabby, but this has made me a nut case once a month. It's a good thing we've been married for 37 years, so he knows that it is only the "newsletter editor nutty lady" that is getting mad at everything and everyone, including him! Thanks for trying to help. You were the only one that answered. JO
    Date: Tue, 6 Jul 2010 03:29:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: Why do I get a black version when I convert my document to PDF?
    How did you convert the file to PDF?
    >

  • Need to have a form to enter data and then send data to database

    I'm looking for assistance with a form created; the end user will complete the form and then press the submit button to email it. Next I need to import that data to either a database or excel spreadsheet.

    If you are looking for a consultant with expertise in Adobe products, may I suggest the Partner Finder at
    http://partners.adobe.com/public/partnerfinder/dev/show_find_by_service.do

  • HT1430 Why does my iPad shut off about every 1 minute and then comes back on?

    Why does my iPad shut down every minute and then come back on ?

    Try to reset your settings... Settings--general--reset (at bottom of list)--reset all settings
    Try an iOS software restore
    http://support.apple.com/kb/HT1414
    Otherwise you may need to have apple repair the device
    https://expresslane.apple.com/Issues.action

Maybe you are looking for

  • DVD reads DVD and CD-r's if prerecorded but blanks are not read

    ONLY Blank DVD's or CD's will not show up on desktop or in Mac Hard Drive. In SETTINGS i have enable any blank to BRING UP Itunes or different programs but this never happens. I have tried many different types of DVD and CDr always the same result. W

  • Modeling Question: Last Item value and First Value

    Dear all, I have the data coming in the following format: Data Source: HEAD1     1     21.01.2005      2     21.01.2005      3     21.01.2005      4     21.01.2005      5     23.01.2005      6     21.01.2005      7     21.01.2005      8     21.01.200

  • Erroneous duplicate entries appearing in SunPKCS11 NSS KeyStore

    Using the Java PKCS #11 NSS Based KeyStore API (SunPKCS11 provider) in OpenJDK 7, I am managing to get my NSS DB into a bad state: certutil from NSS is showing that an alias is getting duplicated again and again on every attempt to overwrite an exist

  • WinSCP not being executed when package is ran from job

    I have a package in the SSIS catalog. It worked fine when it ran in the file system, but like so many others, died when I called it from a job. I ran the problem down to the fact that the account that the job was running under didn't have access to t

  • Adding and deleting applications in Bridge "Open With" menu

    How do you add or remove applications from the context sensitive open with menu in Bridge CS4?  Just to make sure everyone knows exactly which menu I am talking about,here is an example, right click a .bmp thumbnail image in bridge cs4, go to the "Op