Select box fills in the series of fields

Here is the script I am trying. When the user select one of the three radio buttons, then the set of fields are filled in or left blank for the user to fill based on the case below. I get a script error "syntax error" and nothing is filled in.

change (thisrawValue) { }

case '1 ':

Page1.publishingChoices.Publisher.RawValue = "";
Page1.publishingChoices.author.RawValue = "";
Page1.publishingChoices.discount.RawValue = "";
Page1.publishingChoices.numComputers.RawValue = '3 '.
Page1.publishingChoices.copyPaste.RawValue = "30%";
Page1.publishingChoices.printLimit.RawValue = "30%";
Page1.publishingChoices.terrDistrib.RawValue = "Global";
Page1.publishingChoices.deskCopy.RawValue = "";
Page1.publishingChoices.trialEligible.RawValue = "";
Page1.publishingChoices.ownerRental.RawValue = "";

break;

case '2 ':

Page1.publishingChoices.Publisher.RawValue = "";
Page1.publishingChoices.author.RawValue = "";
Page1.publishingChoices.discount.RawValue = "";
Page1.publishingChoices.numComputers.RawValue = '3 '.
Page1.publishingChoices.copyPaste.RawValue = "50%";
Page1.publishingChoices.printLimit.RawValue = "50%";
Page1.publishingChoices.terrDistrib.RawValue = "Global";
Page1.publishingChoices.deskCopy.RawValue = "";
Page1.publishingChoices.trialEligible.RawValue = "";
Page1.publishingChoices.ownerRental.RawValue = "";

break;

case '3 ':

Page1.publishingChoices.Publisher.RawValue = "";
Page1.publishingChoices.author.RawValue = "";
Page1.publishingChoices.discount.RawValue = "";
Page1.publishingChoices.numComputers.RawValue = "";
Page1.publishingChoices.copyPaste.RawValue = "";
Page1.publishingChoices.printLimit.RawValue = "99%";
Page1.publishingChoices.terrDistrib.RawValue = "Global";
Page1.publishingChoices.deskCopy.RawValue = "";
Page1.publishingChoices.trialEligible.RawValue = "";
Page1.publishingChoices.ownerRental.RawValue = "";

break;

}

Thank you

MDawn

In the switch statement, you need this.rawValue... The point is missing.

Have you changed the JavaScript for this?

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Can I do a box fill in the current date?

    I was invited to make a form that has quite a few boxes.  These boxes must also be marked with a date when checked.

    Rather than having the person filling out the form, type the date each time that they check the box, they ask that when the user clicks on the checkbox indicating a current date next to the check box.

    I don't know if this is possible with a date stamp of the day or to have a text box that fills with the current date, etc.

    The forms will also be used for several days, so I can't call him on a "date" and show/hide text box I had initially thought to do.

    I'm also really green at scripts so that any help or advice in the right direction would be much appreciated.

    Thank you.

    The following script the mouse upward to a checkbox will define the text field associated with the current data when selected and empty the field is not:

    // Mouse Up script for check box
    (function () {
    
        // Get a reference to the text field
        var f = getField("text1");
    
        // Set the value of the text field
        if (event.target.value !== "Off") {
            f.value = util.printd("mm/dd/yyyy", new Date());
        } else {
            f.value = "";
        }
    
    })();
    

    Replace "text1" with the name of the associated text field.

  • Fill in the file name field

    Is it possible to have a text field to be filled with the name of the pdf file?

    Example - file name - Incident - 11223.pdf

    When the user opens the PDF file, text 1a "Incident-11223" pre filled box.

    Thank you

    Hello

    Try this one. The docReady event of the TextField object in this script.

    this.rawValue = event.target.documentFileName;

    Thank you.

    Sidonie.

  • Invisible to Visible to the Invisible - boxes filled to the turn invisible back after save/close

    Hello

    I spent the greater part of these hours couple is trying to develop a work around to my current dilemma.

    I have a dynamic PDF that has a bunch of invisible fields in it.

    The user, by the entrance of a drop down menu, triggers a javascript switch that sets the visibility for text fields in the form accordingly.

    The form itself works very well at the start. But when one of my users save the PDF with informed information (using the player with extended rights)... when the file is reopened all visible fields redefine their presences on default (which is invisible). No data is lost, it looks like the flip flops back to the invisible presence.

    My workaround solution provided has been to build an event Doc: ready that will be used to check each field invisible when the file opens, then set it to visible in the non-empty fields. However, I had difficulties with the text fields, properly assess.

    If

    (DocumentAffected1.length > 0) { }

    DocumentAffected1.presence

    = 'visible' ;}

    I tried length RawValue... used '0' and ' "... and nothing seems to work."»

    Is there a better way to check if my text fields are given? And if so, could you give some examples of code?

    I'm not a coder strong. All my Javascript was pinched from examples elsewhere in this forum. But it's nothing more simple if and switches.

    Looks like you need save the State of your form as well. You can do this through code, or you can leave the product to do so. As file/properties, click the default tab and choose the button radio on the preserve of script changes automatically option.

    Paul

  • Fill in the expiry date field when a digital signature.

    I try to get a text field to automatically populate when the form is digitally signed. The field is an expiration date which must show the date of 10 years less one day from the time of the signature. For example, if the form has been signed today the Expiration Date text field should show August 31, 2026. I have been using the JavaScript code following in the Actions of the signature area properties:

    JavaScript code to add the date when the signature

    var currentTime = new Date()

    var month = currentTime.getMonth () + 1

    var day = currentTime.getDate () - 1

    year var = currentTime.getFullYear () + 10

    signingTime var = month + ' / ' + day + ' / ' + year

    var f = this.getField ("ExpiryDate");

    f.Value = signingTime;

    This code had been works very well, but obviously if the Date is the first of the month returns a value of 0 for the date variable. I wonder if there is some way I can change the script to avoid this error?

    It is easier to make adjustments to the Date object directly. Like this:

    var d = new Date();
    d.setFullYear(d.getFullYear()+10);
    d.setDate(d.getDate()-1);
    var signingTime = util.printd("mm/dd/yyyy", d);
    
  • multiple selection of text in the single text field

    did a search but could not find anything either it is possible: that is to say

    blah blah blah blah blah didy didy blah blah blah blah
    blahblah blah blah blah blah blah blah didy blah blah blah didy

    OK this is what I came up with.
    Flash Paper stores text as static text information here:
    myFP.document_mc.pages_mc.page1_mc.rawPage_mc

    (1) obtain a TextSnapshot object.
    (2) TextSnapshot.findText method to return the starting index of the search term
    (3) TextSnapshot.getTextRunInfo on the index of the search expression to return the referance of corner points
    4) push on an array and loop until TextSnapshot.findText returns-1

    You can then use the table to draw rectangles loverly in exactly the right poitions in color what ever you want.

    Thank you all

  • Rule RTP company fills only the first member of the form

    Hello

    I have a form where the accounts are in lines and measures in columns.

    I have created a business with the {FormAccounts} Variable rule (TYPE: members ... is not a member). Variable is used in the declaration of FIX, so that the calculation applies only to members of the selected account.

    When I select several accounts (online) and BR (via right click Menu) on the appeal form, the guest opens and only the first member of the selection is filled in the variable. When I run the BR, the calculation is applied to this member (which is OK)

    However, I can select several members by clicking the Member Selector and add more members to the variable. The calculation is properly invoked for these members.

    So my question is, why my variable get filled with selected members (I tried selecting names of members [who selects all lines], cells). The variable is RTP, because I wanted to see which members are getting selected, otherwise it may be hidden.


    Somehow the BR integrated: setting-> adjust the data is used when several data cells (members) are selected. Basically, I want my BR to be populated with selected members of the form adjust data works the same way.

    Is this a bug or planning simply cannot fill custom variable br with several selected members of the form.

    I don't make any sense?

    Thank you in advance...

    Sašo

    I think that this is how it works. I tried with a variable whose type is members.

    It is not showing me a prompt when I select several lines. However only works for the first row. (even if the menu is started from the second row).

    Multiple lines selected, variable of type members. only works for the first line of the selection. (in 11.1.2.2) You can try to connect an SR and see what Oracle has to say.

    Concerning

    Celvin

    http://www.orahyplabs.com

  • emailing data found in the text entry fields

    Hello
    I have a simple form that users fill in the different text fields "input" as 'Name', 'Email', etc... now all I want is when the click on the button 'send', it should automatically send an email to "info @...» ».

    I managed to do enter the correct e-mail address and the subject, but he is not satisfied. What Miss me?

    Thank you
    Phalconheart

    I love you!!!
    You da man!
    Works perfectly.

  • linking two fields and fill in the two field based on the list drop-down selection box 1

    I work for a small social service agency VERY small non-profit and I try to get our paperwork until the twentieth century. I hope someone here can help me. I have adobe acrobat, but not of other adobe products. I converted our word document that we use for client notes in fillable pdf format and so far everyone is excited to try it. I have a huge problem that I can't understand. I have a customer named created drop-down list box that contains a list of 300 customers. Box 2 is named customer ID and will contain a unique identification code assigned to each customer.

    For example:

    CUSTOMER ID customer JANE DOE 12345678

    So here is my question how can I ensure that when Unetelle is selected 12345678 is already filled in the second field?

    I fill the drop-down list with the names of customer and then enter the customer ID as the value of exports. Note You must have a unique name for each client.

    If your customer ID starts at zero, then you must use a custom JavaScript, so you can keep the zero non significant.

    For the customer ID field, you can use the following custom JavaScript code:

    Event.Value = this.getField("DropBoxFieldName').valueAsString;

    You will need to change DropBoxFieldName name of the drop-down list.

    You will need a mechanism for updating the new customer form and IDs names.

  • Fill in the fields when the check box is selected

    I have a simple question...

    I have a simple form, which requires the user to enter a shipping address and a billing address. I added a checkbox, I want to complete the address fields expedition with the billing address fields if they are identical. This is so that the user has to type two times. You've seen this in a lot of shopping cart checkout systems.

    I don't know anything about scripts in LiveCycle, but I think you can use Javascript? I am somewhat familiar with it, but not enough to achieve this. Can someone help me with this? I would appreciate.

    I realize there are some people older solutions to this problem on other threads, but the links are broken, and nothing has worked.

    I have attached the PDF in question.

    Thank you

    Here you go... .the code is located on the change event of the checkbox.

    Paul

  • Not able to select .jpg to fill selector background image source property s < style > embeded, window closed until I can choose my .jpg to fill in the url field.

    Not able to select .jpg to fill selector background image property of the source s < style > embeded, window closes before I can choose my .jpg to fill in the URL field in the background-image property. Any suggestions? Thank you!

    Manually, enter it in code view.

    background - image: URL (yourimagepath.jpg);

    It could be a code error, DW requires a valid code / clean for many of its functions to work properly. Run http://validator.w3.org/nu and The Service of Validation CSS W3C validators and clean the detected problems. If that doesn't help, clear the cache program or restore preferences can help.

  • creating a box and is not be able to select a color in the Swatches palette to fill the box?

    I'm on a Mac of Yosemite, anyone performed by creating a new document, creating a box with a tool box and is not be able to select a color in the Swatches palette to fill the box?

    I have two screens, I had to move the Swatches palette on my main computer and was able to then select the shade. Before it was essentially trying to grab and drag the box color hand only to choose the color. Problem solved.  Thank you

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • Fill a field of text according to what is selected in the item list field

    I have a form that contains a ROOM_REF field that is a list item and a ROOM_DESC field that is a text element. (among other things).

    When the user selects in the ROOM_REF area (which is populated by a group of archives at the start),
    I want it to automatically fill in the ROOM_DESC field with data (read-only).

    What type of trigger that I use and with what code?

    Something like:

    SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

    Thank you

    Have you tried this code in the trigger of WHEN-LIST-list item CHANGE.

    SELECT ROOM_DESC IN: ROOM_DESC OF THE ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

    -Clément

  • Fill in the text fields of the select list

    I have a select list when selected will fill two text fields with values based on the SQL query

    For example. The selection list is for empno and meets ename and sal in two different fields.

    I looked at the example of the Dene http://htmldb.oracle.com/pls/otn/f?p=31517:42 it's very good, but the only problem I do face is how to fill in several fields.

    Any help will be appreciated.

    ZRH

    Hello

    It would depend where SAL data. If it's on your page, then you could probably do something with javascript. If this isn't the case, you will need to do some Ajax to retrieve the value of the database. Take a look on: http://htmldb.oracle.com/pls/otn/f?p=31517:80

    Your select list can include the ENAME and SAL and your javascript values existing would then just divide the data into two parts and insert them into the appropriate fields.

    Andy

Maybe you are looking for

  • After you download 15 FF icon chgd on a square box with Green Cross. FF works fine why green cross

    Other icons of FF in my system remain the same as before. Why the green cross. I liked the old icon better.

  • How to clean TIF files in firefox, IE it has in Internet Options!

    in Internet Explorer, you can go to Internet options and clean TIF (temporary internet files), history and others. Firefox does not seem to have the same function. How can I clean these files in Firefox?My PC is a Dell Studio with 600 GB of RAM and a

  • Bright magnet "|" appearing whenever I click.

    When someone types in message boxes, address bars, etc. a flashing "|" is displayed to indicate that you can type here. This blinking "|" appears whenever I click on a page now. If I just click on the text or an image, the | appears on this subject (

  • Original SIPURA SPA 3000 help

    Five years ago, that I bought, directly from SIPURA, a new SPA-3000. I've never used but now I want to set up, but I want to make sure it has the latest firmware. I looked at the Linksys site (because any attempt to access www.sipura.com is redirecte

  • Deleted mailbox empty

    Recently, I was unable to permanently remove items from my mailbox deleted mailbox. I received an error message indicating to run my Inbox Repair tool. But I'm not. Can you help me?