How do I populate form fields depending on the value of a list box?

Hi,
Can anybody help me out here?
I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
At this stage it is just a prototype site and there is no database running behind it.
Thanks
Hayden

This can only be solved if you have javascript coding skills.  Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
<select onchange="populateForm()">
When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm().  You need to define a function by that name somewhere on the page -
<script type="text/javascript">
//<![CDATA[
function populateForm(value) {
     if value >0 { document.getElementById("fieldID").style.display='block' }
     if value >1 { .... }
     etc.
//]]>
</script>
The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
Obviously, this is a skinny skeleton.  Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block".  You would need a separate function for each type of field that might need to be chosen.
If this is well over your head, then I'm afraid you will be out of luck for this particular approach....

Similar Messages

  • How to auto-populate form fields between documents?

    I'd like to create an interactive form where the user inputs data into different fields and then the data gets auto-populated into other fields in forms linked to the original form. Is this possible with Acrobat XI? If not, then which Adobe product is best suited for this? If it's possible, how difficult is this to do? I don't need exact "how to" tips at this point. I am not a developer and I don't have any experience with Action Script. I'm just researching what products I can use, as a non-techie, to do the job. Thanks.

    Thanks for your reply. I'm having a hard time understanding the functionality on the end-users's side with the different Adobe forms products. I did a little more reading up on this, but it's still not 100% clear. Perhaps you can help clarify.
    Scenario 1: The user does NOT have a copy of Acrobat XI on their end, and  I do NOT have a subscriptiont to FormsCentral, and I do NOT enable import/export features in the form using Adobe LiveCycle Reader Extensions. In this scenario, the user can fill out my form, but they can't save a copy of the completed form on their local drive. I, however, get a copy of the completed form where I can then extract and analyze the data.
    Scenario 2: The user does NOT have a copy of Acrobat XI on their end, but I have have a subscriptiont to FormsCentral. The user can complete the form and save it on their local drive, but I can't have data auto-populate from one to another. (Note: I went to the FormsCentral website and it says "Allow respondents to download the PDF form, print out, save, EDIT and submit later." I interperet that as meaning they can add text to a fillable form and save it on their end.)
    Scenario 3: The user does NOT have a copy of Acrobat XI on their end, but I have enabled the form with LiveCycle Reader Extensions so that I can have data auto-populate from one form to another. However, I have to pay for an Extension license fee. I managed to find the pricing, and it's too expensive for my needs right now. I'm looking to share the forms with students, so this is not an option.
    Scenario 4: The use HAS Acrobat XI. I can get data to auto-populate from one form to another and the user can complete and save on their local drive. This scenarios is not an option for me / Can't get students or schools to pay for a full license of Acrobat XI is not an option at this point.
    Is my understanding correct? If so, I feel like I've hit a dead-end. The only cost-effective solution is to have a simple fillable form without the ability to auto-populate data between forms. Sigh.
    Thanks.

  • How to mask a particular field depending on the user for a protected pdf?

    Hi,
    I have a requirement of showing a particular fiels data to only one user and to hide that critical data to others. For example, suppose I have two users viz, Primary user and Secondary user. I have a field named UID in my protected pdf form which has some critical data. I want only my Primary user enter and view the information entered in the UID field. When the Secondary user opens the document using his credentials, he should not be able to view the data in the UID field. It should be displayed in astrix as in a password field. Can anyone help me how to acheive this for a protected document?
    Thanks and Regards,
    Maria Johni

    It is possible. You should be having a field in your XSD schema for the username. Bind the username to a hidden field in your form.
    In the designer, in form initialize event,
    write the code: if hiddenfield.rawValue == "person A"
                                 subform1.presence = "hidden";
                           if hiddenfield.rawValue == "person B"
                                 subform2.presence = "hidden";
                                 subform1.presence = "visible"   }
    In your process, when your moving from one step to other step, update the uname accordingly and the form will respond according to the username.
    Regards,
    Chaitany

  • How do i prepopulate a listbox depending on the value of a textfield

    I am getting an custmerid value in a textfield depending on the selected customer name after getting this value i need to pass this customer id to a rowset query for populating the customer address listbox with that customers addresses only (he has multiple address ) iam doing so by doing setobject(1,custid) on that particular rowset.
    How ever on deploying iam getting invalid parameter binding exception.
    what do i do ? how do i get that customers addresses ?when does the creator look for the parameter bindings in the rowset.or trather when does it execute that particular rowset.?

    Hi,
    Check the following tutorial:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/listbox_components.html

  • How to populate form fields by choosing a parameter from a list of values?

    I have a unique field (say claim #)that is displayed at the top right of the page. Whenever I choose a value from the list of values and query the DB, all the subsequent forms(representation of one or more tables, linked by claim#) present below the search field should be populated with apt values.
    The issue here is, the forms displayed in the bottom of the page represent different master tables linked by the universal identifier(claim#) for my system.
    Please guide me if anyone knows a solution for this issue.
    Regards
    Arun

    You might want to look at the Acrobat Forms Data Format (FDF) Toolkit to create an FDF file that has the webbased PDF form refereced as the form source for the FDF data. You could also look at PDFTK and PDF Hacks.
    This is more of a developers issue than a simple Acrobat JavaScript issue.
    If may salary were to be doubled, I would still receive the same amount.
    If you do not like the responses ask for double your fee back.
    What do you expect for free?

  • How to output some JSF codes depend on the value of a managed bean

    like this:
    <?
    if (managedbean.propertyA == "1"){
    ?>
    <h:commandButton action="#{managedbean.update}" value="update"/>
    <?
    }else {
    ?>
    <h:commandButton action="#{managedbean.delete}" value="delete"/>
    <?
    ?>
    I know how to get the instance of a managed bean from jsp,
    but i think It is not a good idea that writing scriptlets to get the instance, then writing code like above .
    Is there a simple/reasonable way to implement this?
    Thanks.
    David

    Try this:
    <h:commandButton action="#{managedbean.update}" value="update" rendered="#{managedbean.propertyA == \"1\"}"/>
    <h:commandButton action="#{managedbean.delete}" value="delete" rendered="#{managedbean.propertyA != \"1\"}"/>

  • How do I make multiple fields dependent on a checkbox?

    I've got about 10 fields in an adobe form that I want to appear and be accessible if a checkbox is checked.  If the checkbox isn't checked, then I don't want them accessible or visible.  Is this possible?

    Sure it is. The code can be made much simpler if you use hierarchical naming for the fields. For example, suppose all of the fields that you want to show/hide have a prefix of "group1.", (e.g., group1.name, group1.address, group1.state, etc.), then you can use the following code in the Mouse Up event of the check box:
    // Get the value of this check box
    var v = event.target.value;
    // Show/Hide the group1 fields depending on the value of this check box
    getField("group1").display = v === "Off" ? display.hidden : display.visible
    It's often a good idea to reset the fields whenever they are hidden or shown, especially if the form data will be exported, so that the form data is consistent with the state of the form. If you want to do this, you could add this line to the beginning of the script:
    // Reset the group1 fields
    resetForm(["group1"]);
    If you don't use such a naming system, the second line of code would have to be repeated for every field in the group, using the indivudual field names of course, and the resetForm statement would have to include multiple array elements for the names of the individual fields.

  • Formula to populate one Person or Group column depending on the value of another Person Group column

    I am looking for a way to popluate the Account information of a Person based on another column where there name in another column.  I have Two Columns   "Name" which is a Person or Group information type and User Account which
    is also a Person or Group Information type.  When an Invidividuals name is entered into the Name column, I what the User Account column to prepolulate.

    Hi,
    For your issue, you can automatically populate User Information depending on the value of another Person or Group column by connectting with User Information List or  connectting with User Profile Web Service:
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=172
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Disabling button depending on the Value of a field in a standard page

    Hi,
    How can I disable a button depending on the value selected in a particular field of the same page? Is it possible to do so in a Oracle standard page? Please guide me in resolving this requirement.
    Thanks,
    Swagatika

    Swagatika,
    You can attach PPR event to the textinput field and use method
    pageContext.ForwardImmediatelyToCurrentPage().As process request method will be called again,here you can use method setDisabled(boolean) in OAsubmitButtonBean, to enable or disable your button!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • Quick Tip: How to create editable form fields | Acrobat X Tips & Tricks | Adobe TV

    A short tip that details how to create editable form fields using Acrobat X Std. or Pro.
    http://adobe.ly/wzXkmL

    I have created a form which will be filled out by customers and sent back to me via 'submit' button. What I am trying to figure out is when we receive the filled out form, is there any way to have it as a pdf. To clarify, when the form is filled out and sent, the receiver opens the email and attached is a non-editable pdf. This way the customers information is no longer editable.

  • How to strip HTML out of the form field but leave the basic user formatting?

    What would you recommend to automatically strip out HTML that a user has entered into a form field? At the same time we need to preserve the basic formatting that was submitted by the users  i.e. replace <p> tags with CRLF, etc. StripHTML function is perfect but it removes all HTML and therefore, all formatting. Is there anything more flexible?
    Thanks!

    Do you need to strip it, or just render it inoperable.
    The latter can be done with the htmlEditFormat() and htmlCodeFormat() functions.
    If you want the striping, take a look at related functions at the http://www.cflib.org site.   I know I have seen HTML replace functions that had the ability to be configured to strip and|or not strip a select list of tags.
    StripHTML() may actually have this feature (I believe it is hosted at cflib.org).  You may just need to see the documentation on how to configure it thus.

  • How to Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

  • How do I bring form fields to the front or back?

    I have a document with many form fields/push-buttons in order to create pup-up effects in an info graphic.
    So I use fields to create a mouse-over hot spot, and others that pop up. Now, of course, the hot spot must be in front (or on top), otherwise it gets distracted in it's mouse-over function by the popped-up object (image) that lays over it. (The result would look like a flashing effect, as you roll over the hot spot.)
    Now how do I arrange the fields?? Ich can arrange images and texts to come to the front or hide behind other objects. But in the form field editing mode there is no such option. Also it doesn't work to just cut and paste them, they re-appear in their former position, often behind the other fields.
    Please, help! Thanks, Peder

    Thanks, I will give it a try. To "recieve the focus" means being activated / hovered?
    Am 22.04.2015 um 18:49 schrieb George_Johnson:
    How do I bring form fields to the front or back?
    created by George_Johnson in PDF Forms - View the full discussion
    The tab order effectively sets the z-order, but if a field is not read-only it will be set to the front if it receives the focus.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7465780#7465780 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7465780#7465780
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in PDF Forms by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.
    ···)····•  Blixen
    werbliche Kommunikation
    Peder Iblher  .  Wichertstraße 16/17  .  10439 Berlin
    Telefon 030 - 250 400 401  .  Fax -409  .  Mobil 0160 - 93 81 58 60
    [email protected]  .  www.blixen.eu  .  www.facebook.com/blixen.eu

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

Maybe you are looking for

  • Bridge 2.1.1.9 stopped showing ACR edits/crops in thumb and preview

    Bridge has started having a new problem, intermittently but frequently, in that it will not consistently show the ACR edits when it displays thumbnails or previews. Specific example I am looking at now. Raw Nikon D300 NEF, open in ACR, crop and adjus

  • Can I export values from an excel spreadsheet into a dropdown field in Acrobat?

    I'm creating a form in Acrobat with a dropdown field as an option, I would like to know if I could export the values from an Excel spreadsheet into this field (there are 600 records)?

  • Can't open mail after update

    I am getting an error message saying that mail can't open because the newer version may be located elsewhere than in applications.  I have checked and I have versions 4.5 and 4.6 in applications.  I have followed instructions in help to reinstall Mac

  • Displaying wrong Modified Date

    Hi All, Files uploaded in KM is not reflecting correct Modified Date. However when I try to view the Details on right click it does reflect the correct Modified Date. Can Someone help me find out why these dates in the view and Details Property are n

  • Scheduling agreement from backend to srm

    Hi SRM Gurus, Can I have the stepup step procedure for a backend scheduling agreement transfer to SRM. Means  we have a scheduling agreement in backend but the further process we have to do in SRM like schedule lines generation. I suppose we need to