Livecycle Designer - Checkbox Java "If" Statment - Box won't uncheck

Hello,
I am writing a simple form with two numeric fields and a checkbox. What I want to happen is when the user selects the CheckBox, the value of the first numeric field (purprice) is copied to the second numeric field (purpriceB). When the box is un-checked, the value in the second numebric field should return to null or 0.
Here is my statement. I placed it in the "Click" event of the checkbox (Java):
if(this.rawValue=1)
{purpriceB.rawValue=purprice.rawValue}
else if
(this.rawValue=0)
{purpriceB.rawValue=0}
The form works right on the first click by coping the 1st value to the 2nd field, but won't allow me t o uncheck the checkbox after it has been checked the first time.

Don't forget in your if statement you only have 1 '=' which means you are assigning a value to the field in the if statement..
to verify a if statement you must use '==' or '===', and to verify if it is different you can use '!=' or '!=='
if(this.rawValue==1) {
     purpriceB.rawValue=purprice.rawValue
} else if (this.rawValue==0) {
     purpriceB.rawValue=0

Similar Messages

  • LiveCycle Designer problem saving in Adobe Reader

    I re populated an old PDF file in LiveCycle Designer. Text, Date, Check boxes. When the new file is opened in Adobe Reader x, it will not save the data. Any way to fix this?

    Did you save the PDF as an Extended Rights PDF? You will need to open the PDF in Acrobat, go to Save As Other and Select "Reader Extended PDF". This will allow you to do things like save data in Reader.

  • Livecycle Designer 7.0 - How do I link a text box in a form to a radio button or checkbox?

    Hello,
    I am using Livecycle Designer 7.0 to create a form. I have a scenario where I have several options on a question where they choose one radio button. The last option of the radio button has a text box accompanying it and I only want it to be able to be filled out/typed into if that particular radio button is chosen. Not to be able to be typed into if that particular radio button is not chosen as an answer to that question.
    How do I do that?
    Also how to I do the same for a text box to be entered into and typed into only if the accompanying checkbox is checked?
    Help?

    This forum is for the Adobe FormsCentral  (formscentral.adobe.com) which is a service that allows you to create,  collect and analyze data using an online web form. You should ask  Designer related form questions in the Designer forums: http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_des igner_es
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • Validating Yes/No Check boxes in Livecycle designer ES2

    Hi everyone,
    I need to validate 5 questions that have yes and no check boxes for "insured" "Spouse" and "Dependents" in one section of my form in LCD ES2 .  I am looking for a javascript code that can check if for each ("insured" "Spouse" and "Dependents")  5 questions has at least a yes or no checked under each and if not an error message is produced.  Thanks for any help you can provided.
    Thanks
    Jagan

    Does anyone have any tips on how to resolve this?  My LiveCycle form is a dynamic form.  It seems like livecycle Designer ES2 has corrupted it or designer ES2 has a bug that makes reader and acrobat print engine not recognize the pages.
    Any help would be great.
    Thanks,
    Josh

  • Java Library for dynamic PDF form creation similar to LiveCycle Designer

    Hi
    I have a requirement as below :
    Requirement :  I need to create a dynamic PDF form with a barcode of type PDF417. Where a user can fill the form offline and after click on some button it will save the form offline and generate a barcode in the same PDF. Later on usaer can take a printout or send the saved pdf as it is.
    Currently I am able to create such pdf from using LiveCycle Designer. But I need to create it manually using designer and then need to apply Reader Extension on it using livecycle server.
    I want to do this programatically. I would like to create a similar form using some Java Library.
    Is it possible to create it dynamicaly(using programs)? how ?
    Does any one know how to acheive this ?
    Can anyone help me please ?
    Thank you very much in advance.

    I heard about LiveCycle ES3 server and was wondering if it could be of any use in my scenario. Can some one explain how to use jar files in standalone application .  I explored the  livecycle forms api but could not figure out how it may be used ?

  • Autodetect checkboxes in LiveCycle Designer 8.0......

    I have made several documents in Frame maker 7.2 with check boxes. After exporting the documents to Acrobat Pro 8.0 I would like to use a form to make the documents "active". When using the auto detect function in LiveCycle Designer it detects my text fields but not my check boxes. Does anyone have a clue how to make this work??
    Help!!!!
    /BP

    Post your question in the LiveCycle Designer forum.

  • LiveCycle Designer won't preview with Reader DC.  Preview mode will not work.  Attempting to preview gets errors (507:507), (103:103), and sometimes crashes LiveCycle Designer.  How do i get preview mode?

    I can not get LiveCycle's preview mode to work.  It has worked in the past, but now with Reader DC i can't use preview mode.  How do i get Adobe LiveCycle designer to work with Reader DC?

    nikg-fh schrieb:
    it seems the problem is caused directly by adobe reader X.
    I just have started a new descussion here (adobe reader forum).
    If anyone could help me, feel free to do so!
    my configuration:
    windows xp pro
    adobe reader x
    adobe livecycle designer 9 ( therefore it is not an version 8 issue )
    admin rights on the pc ; )
    I might add that you are not alone!
    I am having the same problem (LSD ES2 (version 9.0.0....) and Adobe Reader X and Acrobat Professional 8)
    Whenever I save a form as PDF and open it with Reader or Acrobat I get to see the console.
    But never when I view the form in Designer preview!
    That used to work until I installed Reader X.
    Same as you I checked all configurations in Reader and Acrobat: all perfect.
    I really do hope that someone finds a solution for this.
    PS. This problem should be discussed in THIS forum. It is clearly a Designer problem!

  • Importing XML to Blank PDF Template;Form based on LiveCycle Designer 8

    Hello,
        I searched my questions and only thread closer to what i need is from 2012 and not sure is something have changes since then...
    I have rights enabled form designed in Adobe LiveCycle Designer 8 -Forms has few radio button,check boxes and date fields and email submit button(as XML).
    The plan is to send the send the PDF to users,who would then complete the form,email me updated as XML attachment and essentially I am collecting the data in form of XML instead of actual PDF.
    My application would need to read the XML and if some values-check box are set as true.I would need to save the PDF.
    I  need details of an API /SDK needed to achieve this essentially my application need to leverage this SDK,to import the data to blank PDF and save a copy to folder.
    As always thanks in advance..

    If you're looking to integrate the functionality into your application, you could license the Datalogics PDF Java Toolkit. Among other things, it has APIs that allow you to import and export XML to and from XFA forms.
    J-

  • Insert/Delete a page in LiveCycle Designer disabled

    I am working with an 8 page form and am trying to delete the last page on the file, however when I try the 'Delete Page' option is disabled or 'greyed out'. I am using Adobe LiveCycle Designer 8.05.2... and created the form in LiveCycle. It also won't give me the option to insert a page (also a form created in livecycle designer). Anyone have any ideas or seen this problem before? I am going through everything trying to figure out what the issue is.
    Thanks in advance.

    Can you post your form so it can be looked at?
    You can upload it to acrobat.com using these steps:
    1) goto acrobat.com website
    2) login with your Adobe login/password.
    3) In Actions you will find Upload. Select your form and upload.
    4) After uploading, select form name in All Files section and right click and select share.
    5) Check the checkbox "Allow anyone with a link to view this document".
    6) Copy the URL link and post it in the forum.
    Thanks
    Srini

  • LiveCycle Designer 8 Saving Dynamic Field Problem

    Just updated to LiveCycle Designer 8 to get around the issue with my users not being able to save the PDF form data. Now my users can save the data using Acrobat Reader 8 but my dynamic fields are not working correctly.
    I have several fields that when you click a certain radio button or check a certain box, a previously invisible text field becomees visible. If one of those boxes is checked and data is entered in the now visible text field, then the users saves the form and reopens it, the data is saved but the field is invisible. Viewing the XML output confirms that the data is still there. When the form is reopened the checkbox that makes the field visible is still checked. But to see that data entered in the text field, you have to uncheck and then recheck the box to get the invisible field to become visible once more. Any idea on how to correct this "feature"?
    Thanks, Debra

    Hi Debra,
    To correct this 'feature', go in Form Properties > Defaults tab, set the Preserve Scripting Changes To Form When Saved option to Automatically.
    To correctly using Designer 7.x, youll have to write some script to achieve the same result. Currently, you have a script setting the fields state. All you need is to run the same script when the form is opened. In the example below, a form:ready script will execute the change event script when the form is opened. You can use the docReady event as well.
    For example:
    RadioButtonList: change event
    if (this.rawValue == "1")
    TextField1.presence = "visible";
    else
    TextField1.presence = "invisible";
    RadioButtonList: form:ready event
    this.execEvent("change");
    Hope this helps,
    Hélène
    Adobe Systems

  • Editing Form Fields inside Acrobat? (after using LiveCycle Designer)

    Adobe Acrobat 9 Pro Extended ==  Acrobat
    LiveCycle Designer ES 8.2 == LiveCycle Designer
    =========================================
    Say I downloaded a new PDF from the interwebs.
    I want to add some forms fields so I go to Forms ==> Add or Edit Fields... (inside Acrobat)
    Now Acrobat will detect possible places where to add the form fields. I make changes etc. Then I am  satisfied with my form fields.
    Now say I want to remove a particular object from the PDF, lets take an image as an example.
    So I fire up  LiveCycle Designer; File ==> New ==> Import a PDF document ==>  Create an Interactive Form with a Flowable Layout.
    I remove that pesky little object.
    In LiveCycle Designer, I save the file as PDF.
    I open up Acrobat. I realize I need to make some more changes to some of the Form  Fields.
    But now instead of "Add or Edit Fields..." option I get "Edit Form in  Designer..."
    I hate the GUI of LiveCycle Designer --- I had rather edit the form  fields from inside Acrobat, as it is easy and fast to change multiple  form fields in a few clicks.

    Thank you Niall for the above response; Your response gave me an idea which allowed me to remove that line by zooming in to 200%
    You know Acrobat detects Form Fields for you.
    But many times it makes mistakes, for example in the screenshot below it made the boxes that came with the PDF as text fields instead of check boxes.
    The thing is rather than me delete the (form) fields it detected, and start over by making new check boxes, I will not be able to place my new check box in exact locations as Acrobat has done.
    When I imported the fields that Acrobat made into LC (by saving the PDF in Acrobat and then opening it with LC) I get option to change the Object Type from Text Field to Check Box when I right click the object.
    Is there a similar way to change the Object Type from Text Field to Check Box inside Acrobat? Any suggestions?
    ===========
    I would really like to do it inside Acrobat because then if I have to make some minor changes to some field properties, all my hard work which I did by filling the fields gets deleted, as I am forced to use LC. The text I add to the fields don't get deleted when I edit the field properties inside Acrobat. I don't know why LC decides to delete all the text which is filled out in the form fields even though the PDF is saved in Acrobat before being imported into LC?
    Here is the above PDF file with the text boxes:
    http://www.mediafire.com/?lnn32jm5am5
    Again thanks for all your guidance so far.

  • Creating PDF forms in LiveCycle Designer 8.0

    I post detail at Software
    nha khoa Group
    Question on a quirk I have noticed when creating a form using LiveCycle Designer 8 and was wondering if there was a way to change this.
    I will use a Text Field for an area where I want the person who will fill out the form to add comments/questions. I widen the box out so the user will have area to type their comments in.
    In the properties of for that Text Field, on the "Object" tab I check the box to allow multiple lines and I limit the length to the visible area.
    That all works fine. The quirk is when I test the form and then click in that area to type for the text field the cursor always starts in the middle of that Text Field area. Is there a way to get the cursor to start at the top of the text box when someone fills out the form?

    Post your question in the LiveCycle Designer forum.

  • How can I use a script in a Livecycle Designer form, to force display of text in Title Case?

    Hello,
    I am a 'novice' who is DIY'ing the construction of a dynamic pdf form, using Adobe Livecycle Designer 7 (I know, it's a VERY old version!)
    [So, any help that comes along must be 'for Idiots'!]
    I need to construct a code (Java script?) so that a few of my text-fields DISPLAY data in Title Case - IRRESPECTIVE of how the user types in the data.
    So, for example, in a "Address" text-field...
    If someone types in ..
    "205 sherborne avenue"
    - OR -
    "205 Sherborne avenue"
    - OR -
    "205 SHERBORNE AVENUE"...
    I need the data to be DISPLAYED ESSENTIALLY as...
    "205 Sherborne Avenue".
    I found the following code online, and tried it in the 'exit' event of the field I need to modify (with 'language' selected as JavaScript)...
    <   this.rawValue = this.rawValue.replace(/\b([a-z])/g, function (_, initial) {return initial.toUpperCase();});   >
    ... This did convert all the 'initial' letters of the words to Upper Case - AS LONG AS they were not ALL typed in Upper Case!
    So, that code worked for the first two of my samples for Sherborne Avenue above - but it did NOT work for the last one...
    That is, "205 SHERBORNE AVENUE" did NOT get converted to Title Case - which is what I need help with.
    Thanks in advance...

    Hey TundraSteve,
    Thanks a tonne!
    Works perfectly!!!
    In fact, your solution is so elegant and direct, that even I am beginning to get a sense of how it works... I have looked at LOTS of similar codes in the past few days, but was not at all getting a sense of how they are working! But comparing your solution with the earlier one I mentioned, I am beginning to get a sense of things!
    Any suggestions for what I should read-up in order to understand this king of coding?
    I have basically been using the built-in 'Help' - and, trial-and-error - and I have designed my first form - a pretty elaborate one, actually!
    So, it would be great if you could guide me through the 'learning curve' a bit!
    [I have figured-out the 'basics' - that is, I can lay out the form, use 'if-expressions' (FormCalc), trigger events, even build Subforms that are hidden but 'appear' when triggered by other actions, and so on. What I can't figure out are the various 'code languages' (syntax?) that are being used - like " var sometext", for eg.!]
    Cheers, and thanks again!

  • LiveCycle Designer 8-scripting search Access DB records

    Hi
    I am new to LiveCycle Designer 8 having it included with Acrobat Pro 8. I have been trying to set up a basic form that can interact with an Access 2007 DB. Following the help guide, online tutorials, I have been able to set up the data connection, figure out how to establish a "trusted environment" and added several buttons as a test. Using JS, the next, previous, update, first and last buttons work, populating the form fields with the sample DB data and updating the DB (update). Can't get the add new record button to work even though the JS scripting is precisely that shown in the same tutorials for the other buttons. If I delete the text in the on screen cells in the .pdf form, enter new text, click add, all that I added disappears. Checking the DB, nothing has been added. Same difficulty with deleting a record, and the current opened record does not delete.
    Reading a posting suggesting setting up an SQL query instead, leaving of any auto-incrementing item (like ID), and using the JS scripting for the button (don't yet know how to use SQL for next, previous, update, etc.), still couldn't get the add new or delete to work. Tried every combo of no user name, no password to user name, password blank, etc. No success.
    The other needed capability for the test form is the ability to search the DB records, for example by name or ID, for example by the user entering a name or ID in a text input box, clicking a "search" button and the record (if it exists) displaying in the other cells. Then, once found, it could be updated or deleted. One tutorial aims to populate a drop down list box with the data from a specific DB column. It doesn't use JS, rather FormCalc (which kept generating error messages, when I tested it out))and is far too complex for my limited novice skills. If I could display a drop down list box with all of the names and ID's in a DB, the user could choose one and once the record would populate the cells, they could update or delete it.
    So, I'm stuck. Can't get the add new or delete to work and can't figure out how to set up a search to identify records for update or delete. I've read and read anything I can find online, in the Adobe knowledge base, forum, blog postings, trying out many ideas without any success.
    I am hoping someone can help with some suggestions, sample scripts, hopefully understandable by a beginner.
    Any help would be appreciated.
    Kind Regards,
    Stephen
    [email protected]

    Here are some good blog entries
    http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    I also did a tech talk for the Acrobat Users Group where we talked about Database connectivity. Here is a link to that webinar for the replay
    http://adobechats.adobe.acrobat.com/p69655795/
    Paul

  • How can I write to a file from a livecycle designed PDF?

    I am producing a PDF in Livecycle designer and would like to write a sub-set of data from the document.
    I have tried methods such as exportData() but this exports everything which i don't need.
    I have seen another method which is to attach a file and write to that but ideally I'd just like to be able to create a new file.
    var data = xfa.data.nodes.item(0).nodes.item(1).saveXML()  var oFile = util.streamFromString(data , "utf-8");
    I would like to write oFile.
    Thanks in advance
    Edit:
    I would like to add that ideally the user would be presented with a save as dialog  box, so the can choose the location of where to save the xml data.

    an extraction out of expert one-on-one from Thomas Kyte
    <quote>
    when an oracle istance is created the services that support it are setup to 'log on as' the system (or operating system) account, this account has very few privileges and no acces to Window NT Domains. To access another Windows NT machine the OracleServiceXXXX must be setup to logon to the appropriate Windows NT Domain as a user who has acces to the required location for UTL_FILE.
    To change the default logon for the Oracle services go to (in Windows NT):
    Control Panel | Services | OracleServiceXXXX | startup | log on as; (where XXXX is the instance name)
    In Windows 2000, this would be:
    Control Panel | Administrative Tools | Services | OracleServiceXXX | Properties | Log on tab; (again XXXX is the instance name)
    Choose the This Account radio button, and then complete the appropriate domain login information. ONce the services have been setup as a user with the appropriate privileges, ther are two options dfor setting UTL_FILE_DIR:
    * Mapped Dirve: To use a mapped drive, the user that the service starts as must have setup a drive to match UTL_FILE_DIR and be logged onto the server when UTL_FILE is in use.
    * Universal Naming Convention: UNC is preferable to Mapped Drives because it does not require anyone to be logged on and utl_file_dir should be set to a name in the form \\<machine name>\<share name>\<path>
    You will of course need to stop and restart Oracle after changing the properties of the service.
    <\quote>
    I want to write some data to a (external) file. I have it working with the function UTL_FILE.
    My problem is I want to write to a file on a mapped drive (so a drive on a different machine). This is not working.
    Does anyone know a way to build this.
    Please send your responses to [email protected]
    Many thanks,
    Alex Nagtegaal

Maybe you are looking for

  • Yoga 2 Pro returned. Worth to try again?

    I've had the 8GB Yoga 2 Pro for a about a month and a half and have had a lack luster experience with lots of issues of shutting down, freezing and just not being able to power on.  After trying to give it another try, I started it from scratch and i

  • Aknowledgement

    Hi Experts, I am doing IDOC->Xi->File scenario. Scenario is working fine but in sxmb_moni, in ACK Status column i am getting symbol. when i double click on that symbol it is showing message.  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> -

  • Does my Mac Mail account have to be configured as an IMAP account

    Need to know if I have to configure my iMac Mail accont for IMAP? Using AT&T Yahoo as my service provider. Thanks...KCB

  • Round up all values in FI & other modules also

    Hi Experts, We have an requirement that, while posing of any document in SAP, via FI like Cash / Bank / Expenses Voucher or any kind of document / voucher (may be coming from other modules also), the Decimal Points should not appear or value should b

  • Selection-screen dynamic selections for dtab

    Hey experts, when I add this to my code selection-screen dynamic selections for zbr_t_autori and I want activate it, it writes out an error The addition "DYNAMIC_SELECTIONS" is only allowed in INCLUDE DB__SSEL. and I don't know how to solve it, what