Button cancel help with response box.

Hello

I hope for a little help here .

I'm a very, very new on LC Designer and I have created a form that has a checkbox on that. What I want to achieve, when the user clicks on the checkbox a response box appears asking them to enter a value or £100. When they click ok, this value is entered in a textfield, now this part I managed to achieve with this formcalc script:

-form1. #subform [0]. Insurance::click - (FormCalc, client).

Form1. InsValue = xfa.host.response ("Please enter the required amount of insurance coverage for your item in the box below.", "Necessary for insurance")

My problem now is that if the user clicks the Cancel button, but nothing is obviously entered in the textfield box remains ticked, if possible, I would like to have the unchecked check box when the user clicks Cancel.

Thank you very much.

It is very easy to do... I want to tweek your code as follows...

-form1. #subform [0]. Insurance::click - (FormCalc, client).

var AMT

AMT = xfa.host.response ("Please enter the required amount of insurance coverage for your item in the box below.", "Necessary for insurance")

If amt <> "" then

Form1. InsValue = amt

on the other

$.rawValue = 0; set unselected chekbox

endif

Tags: Adobe LiveCycle

Similar Questions

  • Help with check boxes and actions

    Hello

    I just downloaded a trial version of LiveCycle Designer ES2 to see if this program works for the company that I work for. I need to create order forms for our products that our customers can fill out online and then send an e-mail to our sales department.

    I have imported our current order form to LiveCycle as a work of art and have inserted check boxes on the form. I want the form to automatically add the price of the option they checked off the retail price of total at the bottom of the form. Do you have any suggestions for me?

    Thank you!

    Stefan

    Hello Stefan,

    LC Designer is a very powerful application. While you can drag and drop objects on the form, for things really move you need to put a script in objects. This allows to control the way in which the form will be according to the users actions.

    To begin with there is help. If you have a look at the Action Builder in the Tools menu, you can select an object, then use the plain instructions accumulates the desired interaction. When you click OK, LC Designer will insert the necessary script.

    Therefore, there may be a steep learning curve, so it depends on how comfortable you are to roll up your sleeves and do some scripts.

    First, you must configure your workspace. This tends to be a personal preference, but here's a basic layout.

    It is a bit small, because of the scale, but you get the idea. At any time, you should be able to see the page, the hierarchy and the script editor. The object library and the range of the object and other palette must be close to hand as well.

    I am NOT inclined to import the form existing as work. This can limit the built-in options in LC Designer later. You can save your form existing in JPEG format and then in a new form to use the image object (value size full page) to display the image of the existing form.

    [ALTERNATIVE: you can also add fields to a PDF in Acrobat].

    Regarding scripting, the following JavaScript code should work in the click event of the checkbox (on the ground that the other field is named totalPrice).

    If (this.rawValue == 1)

    {

    totalPrice.rawValue = totalPrice.rawValue + 10;

    }

    on the other

    {

    totalPrice.rawValue = totalPrice.rawValue - 10;

    }

    This should take into account if the user changes of opinion and unticks the box.

    One thing to keep in mind about forms developed in the LC Designer, it is only the functions that will be available in the form (such as submit by e-mail in PDF format) will depend on whether the user has Acrobat or Reader, and also on whether the form has been active player (and how it has been activated). There is more information here: http://assure.ly/gYyYc2.

    I highly recommend JP Terry on LC Designer which is excellent - book "create dynamic with Adobe LiveCycle Designer Forms. It starts at the beginning and clearly sets out the key learning points. In the end, there are a few good examples that you can copy anywhere in your forms.

    We have solutions and blog posts on our website http://www.assuredynamics.com.

    There are also a range of online resources. You can find these resources useful:

    http://www.Adobe.com/go/learn_lc_scriptingBasics

    http://www.Adobe.com/go/learn_lc_scriptingReference

    http://www.Adobe.com/go/learn_lc_formCalc

    http://www.Adobe.com/devnet/LiveCycle/articles/Adobe_XML_Form_Object_M odel_Refer ence.pdf

    http://www.Adobe.com/devnet/Acrobat/PDFs/lc_migrating_acrobat_xmlform. PDF

    And a very convenient resource (and even if it's for version 6, it is still very good because of the way it is presented):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

    The HelpFile in the LC designer can also help with the syntax and LC designer itself comes with some great models and examples.

    Finally, discover the network of the developer on http://www.adobe.com/devnet/livecycle/

    A book that does not deal with the scripts at all, but is very good on the formatting is also ""does this work " by Caroline Jarrett and Gerry Gaffney."

    The Adobe "PDF forms Bible" is OK, but focuses mainly on AcroForms.

    WindJack Solutions have a service on subscription for the scripts and solutions tohttp://www.pdfscripting.com. There a lot of AcroForm script which can be modified according to LC designer and a growing library of LC Designer solutions.

    I hope this helps,

    Niall

  • Please help with text boxes

    Can someone help me wit hmy problem. I have a Fisher with plenty of tables in it, some cells of the table are text boxes, or at least they were when I developed it. Now I need to modify some cells and for some reason I can't do because the cell is not a text box, but became (untitled < draw >) I can't change its return type to the text. Can someone advise what to do whitouh retype the text again in the new cell.

    Thanks in advance

    Hello

    Looks like the cell has lost its identity. I'd be inclined to objects in the name that you develop the form because it makes the script easier and less likely for LC/Acrobat to become confused.

    All I can suggest is that you select a good cell and then click the XML Source tab select the 'good' XML from ... to... . Then paste this in the XML for the damaged cell.

    Word of warning, tinkering in the XML Source tab can severely hurt your form - work on a preliminary version!

    If it works, rename each object (certainly within lines) to unique names.

    Good luck

    N.

  • Help with check boxes

    Hello world

    IM, trying to understand what follows but I'm gray will try to sort it out!

    I have a column of checkboxes, when I check the they fill a number from another column. The problem is that I can't add populated figuration as uncontrolled boxes cause an error! Is anyway to say "just add th numbers that have a graduation along side them and ignore the rest zero values"?

    Help me please as its driving me crazy!

    Thanks in advance.

    I'm going to bump this because there are several experts numbers here.  In the meantime, enter in your Google bar (just copy the line below and paste) search

    box numbers 2015 site: discussions.apple.com

    or

    2014 site: discussions.apple.com box numbers

  • Help with text boxes

    Can I have a text box in a form that could be developed to adapt the content and thus to push the rest of the form down and possibly on another page? If it's gibberish, sorry example, if, after the section: 'Equipment will be used' he could go line 1 or 2 pages, but the rest of the form must retain the format? that is, footers and all other notes below the expansion box and could continue to page numbers?

    Shaun

    Try the following steps to test...

    Copy the data file (expand.xml) to a folder
    Launch of LiveCycle Designer ARE and open the form ExpandField.pdf
    Select the range of "Data View" and right-click on "DataConnection.
    Select "properties of the connection.
    Click "next".
    Navigate to the location where you saved the file 'expand.xml'.
    Click on "Finish".

    In addition, confirm the following...

    File > form > overview > view Type > interactive form

    To display the form with the data, select the tab 'Preview PDF'

    Concerning

    Steve

  • PLEADING... I NEED help with the boxes, one for each row in table.

    I have a tabular presentation I want to use to process once that will process once for each line that has had its check box selected. I worked on it... It seems... forever. I almost gave up. More than once I thought I had it all to find that I have no work.

    It seems always executed once for each row in the set of lines in the displayed table and I care about her contract so that the lines checked.

    Here is my select statement...
    Select
    APEX_ITEM. CHECKBOX (2, ISSUE_KEY, DECODE (issue_closed, 'Yes', 'CLOSED', 'No', 'DISABLED', null)) CHECK_KEY;
    TO_CHAR (ISSUE_DATE, ' ' DD-MON-YYYY HH24:MM:SS) FAILURE_DATE,.
    ISSUE_COMMENTS
    QUESTIONS


    I have a submit button that runs the following process
    DECLARE
    v_org_comments varchar2 (1024): = ";
    BEGIN
    BECAUSE me in 1... APEX_APPLICATION. G_F02. COUNTING LOOP
    SELECT ISSUE_COMMENTS
    IN v_org_comments
    QUESTIONS
    WHERE ISSUE_KEY = APEX_Application.g_f02 (i);

    UPDATE PROBLEMS
    SET
    ISSUE_COMMENTS = v_org_comments | » ' || : P4_X_ODF_NOTES,.
    ISSUE_CLOSED = "Yes"
    where ISSUE_KEY = APEX_Application.g_f02 (i);
    COMMIT;
    END LOOP;
    END;

    Hello

    I had the same problem. It seems that if you pass your columns to the columns in standard report it will fire for the checked columns. But if you proceed towards editable fields each line is treated as checked.
    So if you use line selector instead of manually creating check boxes and have a hidden primary key
    field, you can then use something like

    BECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTING LOOP
    UPDATE


    SET
    WHERE =
    APEX_APPLICATION. G_F02 (APEX_APPLICATION. G_F01 (i));
    END LOOP;

  • Frustration of fresh paint - when I click the button cancel the entire image is annihilated

    Original title: Frustration of fresh paint

    I am an older user and love the app, but my work is wiped out all of a sudden. I'll work on an image for days and save after each use, then for some reason, when I click the button cancel that the entire image is wiped out except the works which have been recorded at the start of the first time. When I do my "save under", he asked if I want to replace my drawing with the new and I click Yes. The day after the registered design is here and I can work on that. I have no idea why, while in the workplace the Cancel button clears all of this. Understand that I will have used the button cancel successfully with this doesn't happen. Help, please. It's very depressing to create something, you've spent time on and then lost it.

    Please keep in mind that I am a novice. Please answer in understandable language. Thank you

    Hello

    1. have you tried to click the Redo button to bring back the deleted image?

    2 has there been any changes made on the computer before the show?

    Method 1:

    First of all, I suggest you to run the app store that would check if there are problems with an application.

    Method 2:

    I suggest to refer to the article and follow the steps to solve the problem:

    What to do if you have problems with a soft

    Let us know the results.

  • Help with Javascript for the button Delete

    Hi, Im new JavaScript and have my code works partially, but the trouble with a nested if-then-else statement.

    I have a page element, P4_COUNT, and if its value is 0, the button Delete will allow the user to delete the record. If the number is > 0, a message should appear stating that the record cannot be deleted. That's what I have so far and it works, but the first ELSE is misplaced. This code is the URL target for my button remove.

    JavaScript:var response; response = confirm ("are you sure you want to delete this POC?'");
    If {(response)
    If (document.getElementById('P4_COUNT').value == 0) {}
    doSubmit ('DELETE');
    }
    }
    else {-this other fires when the user hits cancel on the first question above not what I want, I want another one here who said only: "removal cancelled '"}
    -This one should only be fired if p4_count is not equal to 0
    var answer2;
    answer2 = confirm ('you cannot remove this POC, that this POC is associated with a RIF.');
    If {(answer2)
    Alert ('cancelled deletion');
    }
    else {}
    Alert ('cancelled deletion');
    }
    }


    The above should follow this logic:

    Are you sure you want to delete this POC?
    Yes - if p4_count = 0 then
    delete the record
    on the other
    second line: cannot delete this record
    OK - prompt removal cancelled
    Cancel - prompt removal cancelled
    end if;
    Cancel - prompt removal cancelled


    Help, please. Thank you, Laura

    Published by: user8936524 on May 10, 2010 14:14

    Hello

    Try if it works. I didn't test it

    javascript:if($v('P4_COUNT')*1==0){
    var answer=confirm('Are you certain you want to delete this POC?');
    if(answer){doSubmit('DELETE');}
    else{alert('Deletion Cancelled');}
    }else{alert('You may not delete this POC, as this POC is associated to an FRR.');}
    

    BR, Jari

  • Button cancel with multi record table

    Hello!

    We have a problem with the style of table-form provision services. By pressing the button cancel that all the values in the lines are replaced by a single value. Perhaps a picture would be better explain the error. The first photo shows the table as it opens. The second photo shows the table after pressing the Cancel button.

    [url http://helpdesk.in2.si/before.png] First photo
    [url http://helpdesk.in2.si/after.png] Second picture

    Any help would be appreciated.

    Kind regards
    Alen

    Alen,

    My bet is that you use JDeveloper 11.1.1.5. This is a known bug 12551764 ADF in this version, unconnected with JHeadstart.
    Here are the details:

    http://adfbugs.blogspot.com/2011/05/JDeveloper-11115-Serius-bug.html

    I just checked the database of bugs, it is resolved in hotfix 12399372. You can go to metalink to download the patch.

    Steven Davelaar,
    JHeadstart team.

  • On closure of my MacBook Pro always get question "continue application"? with the boxes option to cancel or continue the request.

    On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.

    Selection of abandonment does not prevent the following message appears when closing next down.

    Activity monitor shows all the applications that you have

    installed, running in the background? Something can be...

    If you open the force quit, are there topics other than the Finder

    and maybe a browser?

    You repaired the disk from disk utility permissions lately?

    We could also see other boot options on the use in

    Recovery of OS X to use the "OS X Utilities" in there. Be careful.

    Is there more than one user account on your computer? If you

    Start in another user account and have auto login for

    the fact that it is one that rises at the start, a piece

    similar issues or is it just works fine on shut down?

    The question may take some trial and error troubleshooting. This

    may include some basic startup keyboard shortcuts for

    the computer to start in Safe Mode, to do more test, etc.

    If you have access to an official Apple store, you can be

    able to set up an engineering appointment & have someone closer.

    Good luck anyway...

  • Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    It does not ask the cloud your computer admin password password!

  • Hello good I would like to cancel the annual plan of adobe audition, because I had problems with the software and the Bank, if I can help with this please.

    Hello good I would like to cancel the annual plan of adobe audition,

    As I have had problems with the software and the Bank, if I can help with that please.

    Please contact customer support for cancellation & refund of the next purchase. Contact the customer service

    Creative single-app cloud membership for Adobe Audition (one year) Subscription Office March 11, 2015

    In the case of any questions, please let us know, I can certainly go for you.

    Concerning

    Baudier

  • With the help of buttons in frames with scroll

    Hi, I'm new to Flash and I encountered a problem, I have just resolution of the Cant.

    I have a floating frame and the contents of this frame contains various buttons.

    The user clicks on a button and a new button will appear with information on this subject. At this point, I want to prevent the user to scroll the image.

    I understand the scrollDrag = false; command, but I do not know how to approach the scrollable frame of in the framework itself.

    If I had a framework floating in scroll (called frameb for example), it would be easy to address the fair frameb.scrollFrag = false;

    But I do not know how to reference the framework, I'm (or above it).

    Also, I can get the buttons on the main stage to interact with the floating framework, but can not work, how do I get the buttons in the framework to interact with the main stage.

    Here is a code to get an idea:

    This piece of code is on the actions of the main stage (stage one). It controls a button, that once pressed hides the book on Slide1925 buttons:

    BooksOff.addEventListener (MouseEvent.CLICK, fl_ClickToHide);

    function fl_ClickToHide(event:MouseEvent):void

    {

    Slide1925.pulp.visible = false;

    Slide1925.buck.visible = false;

    Slide1925.comics.visible = false;

    Slide1925.GoldenAge.visible = false;

    Slide1925.Orwell.visible = false;

    BooksOff.visible = false;

    BooksOn.visible = true;

    }

    That works fine, but when I'm coding inside of Slide1925 (like a symbol definition) how would I code to change a button on the main stage?

    Also, how can I program a button on the contents of the scroll pane which some will be the scroll pane?

    Sorry if I didn't explained this very well. Any help would be appreciated

    There are a variety of ways to address the issue.  It would be to have all the code in one place, as the main scenario and target all content from there, whatever in even within the frame of scrolling.

    Another way to approach it would be to use 'this' to target the current timeline and "parent" to target the object containing.

    Still another way is to have the functions that relate to the control of the parent object in the parent timeline and assign event listeners to the internal objects, such as internal objects simply send an event.  The auditor assigned to the event calls the function that lives in the parent timeline.  This works well for situations where the blade is a responsible external file that must be run on its own.

  • Hide a dynamic button with check boxes and actions.

    Good, everyone.
    Now I'm trying to do is create a dynamic action to hide a button
    When a box is selected. It would be simple if the checkbox
    created dynamically.

    I have a report that contains a dynamically created checkbox column hollow
    the apex_item.checkbox command. I want to be able to hide a button if no
    that the boxes have been checked, but I don't know how to make a reference to
    This point when creating a dynamic action.

    You guys could help me once again?
    Thanks for the attention.



    Best regards, Leandro Freitas.

    Try this:
    1 put a class on the checkbox example
    apex_item. CheckBox (p_idx-online 1, p_value => NOM_PAPEL, p_attributes => "class ="mycbclass"onChange = hideRevoke ();', p_checked_values-'UNCHECKED' online")

    2. create a dynamic action:
    Event: change
    Type of selector: jQuery Selector
    JQuery selector: input.mycbclass
    Condition: Expression JavaScript
    Value: $('input.mycbclass:checked').length > 0

    Action: hide
    Create opposite: checked
    Selection type: Elements (s)
    Article (s): click on your button

    Maybe I should point out that if you use a model button then you will need to ensure that the model has a button id so that the dynamic action allows to identify the button.

    Rod West

    Published by: Rod West February 24, 2012 13:52

  • help with framework button

    I have create a button (b1) can I double clicked and to "over" frame change color, so whene I'm above this button, I saw the color where I choose to "over" frame.

    I also have a (b2) button more and I want when I clicked on that the b1 button go to the color of the frame 'more' up to what I called the b2.

    any help with this?

    Thank you antony

    If b1 and b2 are movieclips and you label their mounts up and clicked with what is obvious, you can use something like:

    B1.onRelease = function() {}

    B2.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

    B2.onRelease = function() {}

    B1.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

Maybe you are looking for