Filling out form with pre-determined values

I am new to LiveCycle. I want to set up a form where if a person hits a button or check box, it fills in the form with predetermined variables. I want to there to be several different buttons/check boxes which if selected fill out the form with the predetermined values. These values would be different, depending on the check box/button selected.  Is this possible?
Just to help understand a little more, I am designing a medical prescription form.
If the practitioner selects 'Option A' I want it to automatically fill out the required fields in the rest of the form with the predetermined values (set by me).
Similarily if the practitioner selected 'Option B', it fills out the form with another set of predetermined values.
Hope this makes sense.
Thanks

After looking at your form, I understand what you were going for.  You want several fields prepopulate values when you select either Option A, Option B... and so on.  Here is the script I use for the different fields, I would also suggest adding the same script to the initialized event so you can save the state of the form after it has been changed.
From a Drop Down - JavaScript Change event 
if(xfa.event.newText == 'Option A'){
optionText.rawValue = "This is option A";
optionText2.rawValue = "This is option A value";
optionText3.rawValue = "This is option A";
optionText4.rawValue = "This is option A";
optionCheckbox.rawValue="0";      //0= unselected  1=selected
optionRadio.rawValue = "Option A";
if(xfa.event.newText == 'Option B'){
optionText.rawValue = "This is option B";
optionText2.rawValue = "This is option B value";
optionText3.rawValue = "This is option B text";
optionText4.rawValue = "This is option B";
optionCheckbox.rawValue="1";
optionRadio.rawValue = "Option B";
From a Radio Box - JavaScript Click event  (make sure you define your values)
if(optionRadio.rawValue == 'Option A'){
optionText.rawValue = "This is option A";
optionText2.rawValue = "This is option A value";
optionText3.rawValue = "This is option A";
optionText4.rawValue = "This is option A";
optionCheckbox.rawValue="0";
optionDropdown.rawValue = "Option A";
if(optionRadio.rawValue == 'Option B'){
optionText.rawValue = "This is option B";
optionText2.rawValue = "This is option B value";
optionText3.rawValue = "This is option B text";
optionText4.rawValue = "This is option B";
optionCheckbox.rawValue="1";
optionDropdown.rawValue = "Option B";
From a Button - JavaScript Click event
optionText.rawValue = "This is option A";
optionText2.rawValue = "This is option A value";
optionText3.rawValue = "This is option A";
optionText4.rawValue = "This is option A";
optionCheckbox.rawValue="0";
optionDropdown.rawValue = "Option A";
optionRadio.rawValue= "Option A";
I would attach a sample form, however I can't see where to upload it on this forum.  I will email you the form.
Suggestion on your form:  Make sure your form fields have unique names in the hierarchy (Shift + F11). 

Similar Messages

  • Safari scrolls to bottom when filling out form with developer tools in use

    I love the Safari developer tools and use them all the time, but one behaviour is driving me up the wall. Whenever I have the developer tools open (whether for the error console, the web inspector, etc.) and I try to enter data in a form on the page, for every character I type or control I click, the page scrolls to the bottom. I end up having to close developer tools (not great if what I'm typing is to see the result in the tools) or typing blindly. Scrolling back to the form doesn't work, because it scrolls to the bottom again for the next character typed or control clicked.
    I'm using Safari 4.0.5 on Snow Leopard, but this behaviour has been consistent for some time in earlier versions of Safari and on Leopard. Any tips for changing this would be greatly appreciated.

    HI and Welome to Apple Discussions...
    Make sure Safari is opening in 32-bit mode, not 64. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) make sure Safari is NOT running in Rosetta.
    If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If you can use Safari / Dev tools, then that .plist file needs to be moved to the Trash.
    Carolyn

  • Issue with filling out form fields in Safari?

    Hello,
    Has anyone noticed any issues with filling out form fields (specifically text boxes) in Safari 6.0.2 on Mac OS 10.8.2?  When I attempt to test forms I've created, there is a delay when typing values into text boxes.  Other types of input controls (check boxes, drop down lists, etc.) appear to work fine.  As far as I can tell, this only occurs with Safari 6.0.2 in Mac OS 10.8.2.  Prior versions of Safari do not have this issue, nor does Firefox in the same OS environment.  When I refresh the form, the delay is not as noticeable.  I'm searching the WebKit bug reports as well, but nothing seems to point to this issue.  Any hints would be greatly appreciated.

    From the menu bar, select
    Edit ▹ Substitutions
    and uncheck Text Replacement.

  • Help with the event of closing of fill-out form

    Hi:
    I am in need of his help, I want to grab SAP's event of impression BO, but specifically upon the assignment of folio, this since I want to create a small routine that you not leave behind to enter null values or zero, however when I press the button to close [X] in the fill-out form, this just the same assigns a value zero or void within the data base.
    That way than that you may help oneself with this I will be very grateful
    Greetings Luis

    Luis,
    The forum that you have posted your question in is for questions related to the SAP Business One Integration for SAP NetWeaver.  Is your question related to this product?
    Eddy

  • I am low on the techy food chain and need help. Why does my g-mail address get rejected when I fill out forms on line. I do not have this problem with Safari :(

    When filling out forms or needing to give my g-mail address on Firefox, my address is always rejected. It comes up as an non valid address. I then have to switch to Safari to complete all forms. :(

    You don't download apps from the iTunes app store with Safari.

  • When I try to fill out forms on line my I cannot send as it says my email isn't valid. I ve tried with my gmail and my work email and no luck. It will recognise my partners email with no problem. Please advise

    When I try to fill out forms on line my I cannot send as it says my email isn't valid. I ve tried with my gmail and my work email and no luck. It will recognise my partners email with no problem. Please advise

    Assuming that you can send email on the iPad, Maybe something is corrupt in Safari that is causing this. Try clearing Safari and see if the sites will accept your email address.
    Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Coding for static fill-out form

    fill out form questionnaire?
    I am creating in Flash CS4 (AS3) a static fill out form for a website that I am involved in. The questionnaire helps to determine whether a person is suseptible to drug and alcohol abuse with either a postive answer (not likely to develop substance abuse) or a negative answer (likely to develop substance abuse)
    There are six questions on this form that MUST be answered either yes or no.
    I have created the form with all art and buttons and it is ready to implement in Dreamweaver but need the scripting to make work.
    The six YES buttons are assigned instance names of cb1, cb3, cb5, cb7, cb9 and cb11
    The six NO buttons are assigned instance names of cb2, cb4, cb6, cb8, cb10
    and cb12.
    When the participant answers all six questions either yes or no they will hit a Submit button (with an instance name of submit) that will direct them to a new web/flash page with appropriate answer.
    If the participant answers TWO or more questions with YES and hit submit they will be directed to a new page/doc in the website with the negative answer.
    If the participant answers ONE YES and hit submit they will be directed to a new page/doc in the website with a positive answer.
    If the participant answers ALL NO and hit submit they will be directed to a new page/doc in the website with the same positive answer as answering with ONE YES response.
    I assume this is a very complex coding problem. I am a beginner/intermidiate flash person with extreme novice understanding of coding. I know what stop(); does in AS3 and understand simple clickTag coding etc.
    Would appreciate any help with AS3 coding for this document.
    I usually find coding on forums like these and online blogs - but I don't even know where to begin looking.
    Thanks

    on the timeline that contains your buttons:
    var yesNum:int=0;
    var noNum:int=0;
    submit_btn.addEventListener(MouseEvent.CLICK,submitF);
    for(var i:int=1;i<=12;i++){
    if(1%2==0){
    this["cb"+i].addEventListener(MouseEvent.CLICK,noF);
    } else {
    this["cb"+i].addEventListener(MouseEvent.CLICK,yesF);
    function yesF(e:MouseEvent):void{
    yesNum++;
    e.currentTarget.removeEventListener(MouseEvent.CLICK,yesF);
    function yesF(e:MouseEvent):void{
    noNum++;
    e.currentTarget.removeEventListener(MouseEvent.CLICK,noF);
    function submitF(e:MouseEvent):void{
    if(yesNum+noNum==12){
    // take appropriate action based on yesNum and/or noNum
    } else {
    // error.  all questions not answered.

  • FF 29.0.1 bug - filled-out-forms

    Hi, ever since I started using Firefox, I'd often have tabs already-open with already-filled-out-forms that would, every single day without fail, have my data retained (I'd fill out the form, hit the Back button, and the data would still be seen in the form. Every morning, I'd open the same tabs with the same data and the tabs would have my data prepopulated in the forms as I left it the day before). This was very important because I do some activity every morning and don't want to have to fill out my forms on a daily basis.
    The 29.0.1 upgrade this weekend broke the preservation of this data. Now, I have to manually fill out the forms again. I do like the UI and UX upgrades, but why is it that this critical "feature" to me has been removed? The preservation of data was a paramount part of the Firefox experience for me.
    If this is intended behavior, I'd like to hear it. If this is not intended behavior, I look forward to 29.0.2 fixing the issue. It was never a problem in versions 15+ up until 29.0, but 29.0.1 is a game changer for me.
    (And by the way, I know there are ways around it, but having to manually click on autocomplete buttons or use form filler tools defeats the purpose of this already existing up until this version.)

    tamarsaw, <br />Yes. That or something similar is easy to do. I can understand you would rather just use Firefox than have to try troubleshooting it but the effort and results should pay off in the longer term.
    It is just a matter of transferring and overwriting files in the new profile. It is also possibly worth keeping backup copies maybe put a spare copy somewhere safe such as the Desktop or Documents.
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox#Suggested_profile_contents_to_transfer
    Remember you could for instance have the current profile retained for historic reasons. A totally clean profle for testing purposes, and a clean profile but with current open tabs and history/bookmarks.
    The new sync is worth using that will keep backups on a server. However it has sometimes been unreliable and troublesome in the past it would be wise not to become over-reliant and rely on it totally for anything very important. When you start Firefox from the profile manager you choose the profile to use. Or you have icons/shortcuts that use specific profiles
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    <u>Open Tabs</u>
    The recently opened tabs can be kept. That is the file '''''sessionstore.js'''''
    * see http://kb.mozillazine.org/Sessionstore.js
    Firefox does itself try to keep a backup copy of those sometimes but the system may not always be 100% reliable.
    <u>History</u>
    This is kept in the same database as the Bookmarks. The file is '''''places'sqlite''''' The bookmarks do have separate backups even without you making manual bookmarks. The History does not have backups.
    * see http://kb.mozillazine.org/Places.sqlite
    <u>Sync & Firefox Accounts (FxA)</u>
    The new Firefox Accounts from Firefox29 will backup opentabs and History to the server, AND allow you to use those backups even if you only have a single machine or even stop using one machine and register another single machine. The old sync was not designed to be used as a backup or with single devices.
    * How do I set up Firefox Sync?
    * How to update to the new Firefox Sync
    * https://blog.mozilla.org/services/2014/02/07/a-better-firefox-sync/

  • Acrobat Pro 7, Adobe Reader 8, and Filled out forms

    My head is spinning with all the "Acrobat features" that seem to be in Acrobat, but actually aren't. At least not in the version I always seem to have. I wish Adobe would be more diligent in explaining what features are are in which version and what features are in the Windows version that aren't in the Mac version.
    I'll do a search for a particular question. Get an answer of Yes, Acrobat can do that. Only to find out (through trial and error and usually not the article I'm reading) that I can't do what I what I want in the version I have.
    To my question: We are using Acrobat 7 (CS2) to make forms for people to fill out and return to us. The people filling out the forms will mostly be in Adobe Reader 8.
    How can we get those folks to send us the filled out form? I have yet to get that to work. I have Reader 8 on my machine and when I use the Submit Button method, Reader tells me SendMail can't recognize my mail client, but then gives me no way of fixing that? Where are SendMail preferences? SendMail isn't even in the Help menu!
    Any insight would be appreciated...

    There is a New feature in Acrobat 8, that allows usage rights (you have to choose in tools menu, to allow it.
    For small companies and Non-Profits, Adobe threw us a Bone. As long as as you receive no more than 500 respondents you can do this without breaking the EULA. (License agreement).
    What you do is create your form make sure you have perfected and needs no changes. then turn on this item in Tools menu to allow Fill out and email. Then post to a website or send individually to no more than 500 people by email. They can fill out the form save the changes then send back.
    However when you do this any person using Acrobat Pro 7 or Acrobat 8, or Reader 7 or 8 can do this. doesn't work bellow version 7. But Acrobat 8 is the only one (so far Than can create these.
    If you make a mistake in the form and find it after turning usage rights on you have to save a copy with rights turn of and make your changes then go through procedure again.

  • Exporting or saving the filled-out form to a specified location.

    Hi,
    I have created a pdf form using Acrobat X Standard. Currently, the way I have designed it is- the filled out form is attached to the email when the user clicks submit button. I am using some java code that I found through this forum. I do not know much about java.
    I want to change this. In addition to emailing the completed form, I would like the form to automatically get saved  to a pre-defined location when the user cliks submit button. Is there anyway I can do that. The problem I  see in this is the file name. How would that be handled?
    May be I am asking something impossible. But your thoughts would be appreciated.
    thanks,
    s.p

    The basic method you'd use is the doc.saveAs method: page: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    Here is a good tutorial on how to use it: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
    It doesn't mention though that it can be used in a certified document, in which case the trusted function stuff isn't necessary.

  • Excel import to create forms with pre-populated fileds

    Can/how do I create forms with pre-populated fields from an external data source like Excel?  Example:  I would like to create 100 forms with pre-populated name fields from an Excel document containing 100 names.  

    Hi,
    Sorry, we don't currently support creating forms with pre-filled data.
    Regards,
    Brian

  • Acrobat Pro 9 Mac**Making a pdf fill-out form non-editable when it is completed.

    HELP!!
    If anyone out there can help me I would greatly appreciate it.
    I see the forums are with LifeCycle but I need direction for the mac version of acrobat pro.
    I am creating a fill-out pdf form for distribution. I would like the person who receives the fill out form to complete the form,
    and click a "lock all fields" button or "form completed" button that will make all form fields lock/ non editable when emailed back to me.
    Where would I put this script? Can someone give me step by step direction for this button?
    I am a novice to this. I don't know how to run a javascript for the button or what is needed to get this completed.
    Can someone please help me.
    Thank you so much-
    Katy

    Maybe this will do the trick...
    http://forums.adobe.com/message/3813078#3813078#3813078

  • User being able to download filled out form in pdf format

    Hello,
    I'm testing the formscentral application and was wondering if the users are able to obtain a copy of the filled out form in pdf format versus just plain text in the email?
    Thanks

    No, respondents can only get the email with text responses. There is no way for them to get a PDF copy of what they filled out.

  • How do I get it to automatically fill in my name/address/email/etc. when filling out forms?

    Is there a setting that makes the computer automatically fill in my name, address, email address, etc. when I'm filling out forms, like in other browsers I've used?

    You can do that with the [https://addons.mozilla.org/firefox/addon/4775/ Autofill Forms] add-on.

  • Save a filled-out form to Word - saved as blank

    I purchased ExportPDF so that I could save a filled-out form to Word. I needed to do this because, though the form has fields that allow seemingly infinite text to be inserted, the text is not visible when printed.  The document must be submitted by US Mail.  When I converted the completed document to Word, it erased ALL of the text I added and unchecked all boxes.  If this is all it can do, I need to unsubscribe and get a refund.  That is totally worthless to me.

    Hi,
    Did you try with different file? If so, are the results the same?
    Would you send your document as an email attachment? 
    I will check it from my end.Please add the link to this forum post for reference.
    I have sent you my contact details on your email id.
    Regards,
    Florence

Maybe you are looking for