Checking Checkboxes & setting filename

Hi,
I am fairly new in creating acrobat forms and scripting.
And now I will create a form for a friend and would of course create as user friendly as possible.
The Scenario is:
I have a form which has totally 6 Checkboxes, 2 Textfields and 2 Buttons.
Now i want to realise the following tasks:
1.) If one of the Checkboxes 1 - 3 is selected, the other two are automaticly unchecked. Also, if Checkbox 3 is selected the Textfield 1 is required. The same should be with the Checkboxes 4 - 6 and Textfield 2.
2.) If the Textfield 1 is required it should be checked if the something is entered and the length is 6, 8 or 10.
3.) It should be not possible to overwrite the original file. The user should be prompted to save a copy when he clicks the save button at the toolbar or the button at the form. Also the filename should be suggested based on which checkboxes are selected.
In example: "Copy_ChkBx2_ChkBx4.pdf"
4.) I want also add an button to let the user directly the pdf via email. The filename whould be generated like in at 3.). I want also to add some text to the email and set the subject to the filename.
I don't know if all that is possible but it would be great when it is possible that somebody would show me how it is possible.
Many thanks for your help.

No, the hidden field is in a while loop, so value="<%= moduleBean.getModuleId() %>" is always different.
This <td> tag
<td><input type="hidden" name="checkbox" value="<%= moduleBean.getModuleId() %>"><input type="checkbox" name="checkbox1" value="<%= moduleBean.getModuleId() %>"></td>
is in the while loop.
Does it matter that the hidden field name, checkbox, is different from the checkbox name, checkbox1, that the user sees?

Similar Messages

  • How can i check my setting details are correct on my iPhone I recevied an error when sending a text this morning and while checking it out noticed my state and city are wrong

    How can i check my setting / about tab? This morning I got an error message say something wasn't safe (not sure what) I think it was my common name whcih is ch4iv.myvzw.com and while looking in there I noticed my state say NJ I live in PA, I did not buy my phone in NJ, the city says Bedminster I have never even been there. Can anyone advise?
    Can't I go on my Apple account and get to my setting / details.

    Here is the message...

  • In my pc iam using fire fox now it is asking please check procky setting i am using 13.0 how can i solve this problem

    in my pc iam using fire fox now it is asking please check procky setting i am using 13.0 how can i solve this problem

    Firefox, please update to Firefox 31. [[Update Firefox to the latest version]] 13 is not supported anymore.
    After that, [[Advanced settings for accessibility, browsing, system defaults, network, updates, and encryption]]

  • I have an I phone 4s and I have many contacts in my phone.  However, whne my phone rings or I receive a text, the phone does not show the name of the contact person only the phone number.  I have checked every setting I can think of ?

    I have an I phone 4s and I have many contacts in my phone.  However, when my phone rings or I receive a message.  The phone does not show the name of the caller.  It only shows the phone number that is calling.  I am sure this is a setting problem, but I have checked every setting I can think of.  Any suggestions??

    If you are a Verizon user try this:
    Open the phone and dial *228. This is a Verizon over-the-air programming number.
    When the system answer press 1 for "Program or activate your phone"
    Wait for the call to disconnect. You should get a prompt stating "Settings updated."
    Double tap the Home button to bring up the recently used apps list at the bottom.  Locate the Phone, Message, and Contacts apps, swiping if necessary, and press and hold until they jiggle then press the red minus sign to stop them.
    Wait a 3-5 minutes.
    Try your phone again and see if it's fixed.

  • Running snow leopard on MBP and am not getting an sound alerts for Mail or Calendar; Have checked all setting in sound in the system preferences

    Running snow leopard on MBP and am not getting an sound alerts for Mail or Calendar; Have checked all setting in sound in the system preferences

    Hi..
    For Mail, from your Mail menu bar (top of your screen) click Mail > Preferences then select the General tab.
    Click the pop up menu to the right of New messages sound to make a selection.

  • I want to check XI setting in my existing sever

    Hi Guru's
    I want to check XI setting in my existing sever , as i m new in xi.
    I want to know abt SLD , adaptor and alert setting etc
    plz  help me
    Thanks in advance
    Edited by: sandeep gautam on Dec 26, 2007 7:47 AM

    Hi,
    The SLD basically has two main area of content:
    1. Software Catalog: From the main screen of SLD,choose software catalog.You can view the installed products or software component
    2. System Catalog : You can choose Techinical Landscape for viewing the technical systems & business systems for logical systems.
    You can check the SLD connection via SLDCHECK (For example check that business systems can be read correctly from the SLD).
    For Adaptors,there are many kinds of adaptors.Which adaptor configuration do you want to know?In case you want to know which adapter engine is available you can
    1. Log on to the SLD
    2. Navigate to the Technical Landscape area & list the technical systems belonging to XI
    3. Check the adapter engine of type XI AdapterFramework.
    Alert Framework is basically used with BPM. Many time the alerts are configured as process steps in BPM. You can check the alerts which have been generated via SXMB_MONI in a BPM. Not sure what kind of setting parameter you want to know.
    Regards,
    Jyotish

  • How to check whether set up tables are filled or not

    Hi Gurus,
    How to check whehter set up tables are filled or not?
    Cheers,
    Reddy.

    Hi Reddy.......
    And another point I want to make u clear............LBWQ is not the Delta Queue.............Delta queue is RSA7...............it comes into play in delta loading.......LBWQ is Extraction Queue.........While delta loading....if we use the Update mode Queued Delta........then any Changes will not directly get updated in the Delta queue.....For the Delta set up.........
    1) First u hav to run init with data transfer(After filling the set up table)
    2) After that any Changed ........will be recorded in the Extraction Queue(LBWQ)........
    3) After a certain number of records get accumulated in LBWQ........We hav to run V3 jobs to bring the data in the Delta queue(RSA7)...
    Check this.....
    Re: question on LBWQ and RSA7
    Regards,
    Debjani.....

  • HT4972 Hi! I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Hi!
    I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Disable the computer's firewall and antivirus during the download and update.

  • How to loop to get value of all checked checkboxes?

    I am a non-techic trying to fix something for work. Your help is really appreciated.
    I have a form with checkboxes (4 check boxes). Everything sumbits fine. SQL db is updated perfectly and data is displayed on webpage w/o any problem. However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected. What am I missing? I know I am suppose to use loop to get all checked checkbox values, but I have no idea how.
    Here is my code so far.
    <input type="checkbox" name="colors" value="red" <cfif #getResultSet.colors# EQ "red">checked</cfif>>red
        <input type="checkbox" name="colors" value="blue" OR<cfif #getResultSet.colors# EQ "blue">checked</cfif>>blue
        <input type="checkbox" name="colors" value="green" OR<cfif #getResultSet.colors# EQ "green"></cfif>>green
        <input type="checkbox" name="colors" value="yellow" OR<cfif #getResultSet.colors# EQ "yellow">checked</cfif>>yellow

    JayYaj wrote:
    However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected.
    You've given all the checkboxes the same name. Give them each a unique name and you will be able to access them individually. Current standards also require a unique ID, which can (but does not have to) be the same as the name.
    The "OR" characters in your code are not doing anything. You can safely delete them.

  • Method to uncheck a checked checkbox

    Hi there,
    I have been trying to uncheck a checked checkbox but haven't found a way to do so. Is there a java method to do it? I've tried setState(false) but it doesn't work.
    Thanks in anticipation :)
    kiat

    Hi, dieterjanssen
    Thanks for your advice :)
    Yes, I do have an itemListener added but I don't have the itemStateChanged method. How do I implment that method?

  • Won't keep "sync only checked songs" setting

    I am trying to sync only the checked songs to my ipod. The problem is that when I change the setting to "sync only checked songs," it still syncs the unchecked ones. When I eject my ipod and then reconnect it, the "sync only checked songs" setting is off again. I've tried both hitting apply, and then syncing, and syncing multiple times. Very frustrated. Has anyone else encountered this problem?

    It's been a while since this question was asked... maybe you figured it out?
    I found a trick that seems to get iTunes to re-evaluate what needs to be removed from the iPod. You change the "sync checked songs/videos" option back-and-forth. See this: https://discussions.apple.com/message/17344534#17344534

  • "Your change couldn't be saved. Check the Setting ...

    I've been having this issue all day.
    From 4 different Platforms;
    HTC EVO 4g
    Windows Vista on my Fujitsu Laptop
    MacBook Pro
    Iphone 4
    I have a current/valid Premium Skype account with an Online Number
    Everytime I try and change a call forwarding setting (on/off or enter a # to fwd to), I get the error message
    "Your change couldn't be saved. Check the Setting and try again."
    I've rebooted everything., uninstalled, reinstalled, updated, checked for updates, All of my privacy settings are set to Anyone/Everyone, the only thing I haven't done is called an exorcist.....oh wait I'm on the phone with Microsoft...(Parent Company for Skype) and.......They first point me to this website.....I decline the info, letting them know I've searched all the forums and support both Skype related sites had to offer and they xfer'd me to a tech support rep who should be able to assist and All they can do is point me back here.
    So here I am. Please help me.
    Thank you in Advance

    Sorry, I just found more relevant thread. I have posted it again..
    http://community.skype.com/t5/General-Discussion/Call-Forwarding-Problem/m-p/1273728#M62811
    I am also getting the same message. I am trying to set up call forwarding in "skype client".
    I have malaysia mobile phone number from "maxis hotlink". I am trying to forward all skype incoming calls to my online number and skype client to my mobile phone number in Malaysia. But every time I click on save button, it shows  " settings not saved" "sorry. your new settings could not be saved at this time. please try again later."
    I can set up call forwarding number in skype secure login page in the website. But it is not working as well.
    This is something very serious as before 24 hours everything was fine. 
    I am premium skype user with 4 subscriptions and an online US number.
    Contacted skype live chat agent but he was so dumb to help me. !

  • Itunes could not connect to internet.. i have read all your solution but non help, include firewall, restart dns, check IE setting ETC... PLS HELP, my phone can't sync with itune...........

    itunes could not connect to internet.. i have read all your solution but non help, include firewall, restart dns, check IE setting ETC... PLS HELP, my phone can't sync with itune...........

    i could not do anything with itune, check updates, help. etc..
    i am using windows 7.. and the latest itune, (previous itune also can't sync)

  • Set value in text field when checking checkbox

    Hi,
    I have a manual tabular form and when I check cb1 I want to set ben2 to Oracle.
    Is there anyway I can do that?
    Here you can see my very simple example:
    http://apex.oracle.com/pls/otn/f?p=22968:3:4142231640027285:::::
    My tabular form query:
    select
    to_char(dag,'day dd mon yyyy')||apex_ITEM.HIDDEN(1,pk) dag
    , apex_item.text(2, ben1) ben1
    , apex_item.text(3, ben2) ben2
    , apex_item.text(4, ben3, null,null,null,'f04_'||rownum) ben3
    , apex_item.text(5, ben4)||apex_item.hidden(6, cb1) ben4
    , apex_item.checkbox(7, ROWNUM, 'onclick="test(this)"',DECODE (cb1, 'Y', ROWNUM)) cb1
    from dummy
    Regards Daniel

    Hi Anirban,
    The sql-query for the report:
    select
    to_char(dag,'day dd mon yyyy')||apex_ITEM.HIDDEN(1,pk) dag
    , apex_item.text(2, ben1) ben1
    , apex_item.text(3, ben2) ben2
    , apex_item.text(4, ben3, null,null,null,'f04_'||rownum) ben3
    , apex_item.text(5, ben4)||apex_item.hidden(6, cb1) ben4
    , apex_item.checkbox(7, ROWNUM, 'onclick="test(this)"',DECODE (cb1, 'Y', ROWNUM)) cb1
    from dummy
    On the region, Header and Footer -> Region Header
    <script type="text/javascript">
    function test(pThis)
    if(pThis.checked)
    {document.getElementById('f04_'+pThis.value).value = 'Checked';}
    else
    {document.getElementById('f04_'+pThis.value).value = 'Not Checked';}
    </script>
    That's all.....
    /Daniel

  • Set filename of printed PDF via script

    Hi folks!
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    The script within Acrobat is finished and working. I thought, the InDesign script is finished ,too. But I was wrong -.-
    I merged the databasefile with the document and exported it as PDF. But after exporting, we noticed that the script within Acrobat isn't finding the adressheader where the ID is in. The script only noticed the text after that header. The result is, that Acrobat get's always "null" as ID
    If we print the PDF with our PDFprinter, the header could be read by our Acrobat script. I don't know why this is... But now I changed the script to print the files via our PDF printer. Unfortunately I can't set a name for my exported file - do you know if there is a possibility to print PDF's without prompting after each one and with a via script given name?
    Here you can see the old script for InDesign and right after it, the Acrobat sript. Maybe I made some mistake by generating my PDFexport and don't need to use the printer?
    INDESIGN SCRIPT:
      * prompts filebrowser and stores name and path of file in variable
    var sourceDocument = File.openDialog("Bitte Indesign-Dokument auswählen", "*.indd", false);
      * stores only prefix of filename for use as new filename
    var newName = sourceDocument.name.substr(0,  sourceDocument.name.length-5);
      * stores folder where file is stored
    var dbSourceFolder = sourceDocument.parent+"/";
      * prompts for databasefile where generating should begin
    var dbstartfile = File.openDialog("Bitte Start-Datenbankdatei auswählen", "*.txt", false);
      * gets basename of databasefile
    var dbstartfilename = dbstartfile.name.slice(0, dbstartfile.name.search(/_Teil+/));
      * gets number of first databasefile
    var i = dbstartfile.name.slice(dbstartfile.name.search(/_Teil+/)+5).slice(0, -4);
      * generates path name and name of first databasefile to use
    var dbSource = dbstartfile;
       *set PDF preset for generating PDF
    var PDFPreset= app.pdfExportPresets.item("GAG-PDF");
       * stops throwing of alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    // if databasefile isn't existing message will be thrown
    if( dbSource.exists == false ) {
        // restart of alert throwing
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        alert("Datei " + dbSourceFolder+dbprefix+"_Teil"+i+".txt konnte nicht gefunden werden! \n\rBitte starten Sie den Vorgang erneut und geben Sie die richtige Datenbankdatei an." );
    // else process starts
    else {
        while(  dbSource.exists == true ) {
            // opens source indesign document without showing it
            mergeDocument = app.open(File(sourceDocument), false);
            // sets which databasefile should be used for data merge
            mergeDocument.dataMergeProperties.selectDataSource(File(dbSource));
            // starts merging of indesign document and database file
            mergeDocument.dataMergeProperties.mergeRecords();
            // exports generated document as PDF file
            app.activeDocument.exportFile(ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
            // closes opened indesign document
            mergeDocument.close(SaveOptions.no);
            i++;
            // change filename of database file to get next file
            dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    // restart of alert throwing
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    alert("PDF-Generierung abgeschlossen!");
    ACROBAT SCRIPT:
    * Path where files should be saved
    * Special Characters like spaces should be escaped with \
    * If you want to modify the folder, use following form:
    * "/Driveletter/Foldername/../LastFolderName/"
    * Make sure not to forget the / before and after the location
    var filepath = "/c/pdf_split_test/";
    * Number of expose pages - feel free to change
    var pageType = app.prompt("Bitte geben Sie die gewünschte Seitenzahl der Exposés an.", "");
    alert(pageType);
    * regular expression for search
    var idNumber = /08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;
    * if possible this function extracts the searched number as string
    * @param rematch string which should be searched in document
    * @return null if rematch is not found or string if rematch is found
    function ExtractFromDocument(reMatch) {
      try {
             var Out = new Object();
             for (var i = 0; i < 1; i++)
              numWords = this.getPageNumWords(i);
              var PageText = "";
              for (var j = 0; j < 30;j++) {
                  var word = this.getPageNthWord(i,j,false);
                  PageText += word;
              var strMatches = PageText.match(reMatch);
              if (strMatches == null) continue;
          return strMatches;
      } catch(e)
          app.alert("Processing error: "+e)
    * tries to load given filename (extracted number)
    * @param filename string of file which should be checked
    * @param n number to iterate while checking for files
    * @return true if file exists or false if not
    function checkIfFileExists(filename, n) {
        var existingDoc = false;
        try {
            if( n == 0) {
                var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
            } else {
                var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
            checkDoc.closeDoc();
            existingDoc = true;
        } catch (e) {
        if( existingDoc == true ) {
            n = n+1;
            n = checkIfFileExists(filename, n);
        return n;
    var pageAmount = this.numPages;
    for( i=0; i<pageAmount; i+pageType ) {
        var filename = ExtractFromDocument(idNumber);
        fileExistence = checkIfFileExists(filename, 0);
        if(fileExistence != 0) {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000_"+fileExistence+".pdf"}); 
        } else {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000.pdf"});
        this.deletePages({nStart:0, nEnd: pageType-1});

    Hi,
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    Why you don't export 6-page PDFs directly from InDesign?
    robin
    www.adobescripts.co.uk

Maybe you are looking for

  • I want to purchase the Oracle Traning Text Book Only, is it possible

    I would like to purchase the following Oracle's Training Text Book alone(NOT CBT CDS), is it possible? if possible need a little guidance Oracle 9i SQL & PL/SQL Oracle 9i Forms Oracle 9i Reports Oracle 9iAS Administration Regards John Veslin

  • Replacing HTML tags using HTMLEditorKit etc.

    Hi Not sure if this is the best place to ask this. I've searched without finding much. Basically I am trying to create a HTML template system for output. User's can change the templates to change the program output. The templates are basic HTML with

  • Accessing a property

    How can a access a component property defined in the portal.xml file simulair to this <property name="plainDescription" value="Number of messages"/> I use a JSPDynPage. what I realy want is this. <env-entry> <env-entry-name>CONFIGURATION_FILE</env-en

  • My Apple Tv wont update

    My apple atv wont update successfully I restarted, formatted and did everything and it wont update at all. What do I do?

  • Why i can't load music from my iTunes library to my synced iPod touch

    Why can't I load music from itunes library to synced ipod touch