Clearing a form

I've created a main form that the user selects certain criteria on...this form opens one of many second forms (depending on the choices made by the user on the first form.
My problem is that after the user pushes the "print labels" button, I want the form to close and go back to the main form. I have tried using "close form" and "exit forms" directly in the "when button pressed" trigger, but I keep getting an error....any idea how to do this? tia, robin

If your forms are on canvases placed on different windows then you can write a When-Window-Closed trigger that will check on what the user preference was and then close the current window and then navigate to your main window (in this case your main form). But if the forms are different modules the write a When-Form-Navigate to check for the user' preference, close one form and navigate to the main form. Even if the main form is not currently opened it can be called/opened in this trigger.

Similar Messages

  • Clearing a Form or Radio Group on Click of a Button

    Hi Experts,
    I have a simple VC model which has BI Query as Data service and a Form is connected to it.
    Form will be populated based on the input to the BI Query.
    I have Few Input Fields, Drop Downs, Date files and Radio Groups in that form.
    I have included two buttons 1. Clear whole form, 2. Clear Radio Group
    I was able to clear whole form by giving some garbage value to one of the fields.
    But didnt find any way to clear only Radio Group.
    Kindly let me know how can i reset only Radio Group in the above form.
    Regards,
    Rk.

    Hi Jayant Kulkarni
           Please go through this link
    http://en.allexperts.com/q/Javascript-1520/disable-part-radio-button-1.htm
    Please reward points if useful

  • How to clear the form fields which are not rendered

    I have a creation form. There is a document_type list set up as a partial triger. When user change the document type, only the filed related to that document type will be rendered. This caused a problem when we need to clear the form . The input in the field which is not render won't be cleared when reset button is pressed. Can anybody give a sugestion on how to handle this?
    I tried to use the following function to clear the fields. It does not work since it get the list value before the list value change and clear the fields after the new field rendered.
    public void clear_action(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("test1");
    String coutcase = null;
    if(EL.get("#{bindings.Proxy.inputValue}") != null){
    coutcase = EL.get("#{bindings.Proxy.inputValue}").toString();
    System.out.println(coutcase);
    AttributeBinding a11= (AttributeBinding)getBindings().getControlBinding("INT_FNAM");
    AttributeBinding a12 = (AttributeBinding)getBindings().getControlBinding("INT_LNAM");
    AttributeBinding a13 = (AttributeBinding)getBindings().getControlBinding("TIT_PROG");
    AttributeBinding a14 = (AttributeBinding)getBindings().getControlBinding("T_OF_INT");
    AttributeBinding a15 = (AttributeBinding)getBindings().getControlBinding("NETWORK");
    AttributeBinding a16 = (AttributeBinding)getBindings().getControlBinding("IN_DATE");
    AttributeBinding a17 = (AttributeBinding)getBindings().getControlBinding("PE_FNAM");
    AttributeBinding a18 = (AttributeBinding)getBindings().getControlBinding("PE_IN_LNAM");
    AttributeBinding a19 = (AttributeBinding)getBindings().getControlBinding("WEBSITE");
    AttributeBinding a20 = (AttributeBinding)getBindings().getControlBinding("URL");
    AttributeBinding a21 = (AttributeBinding)getBindings().getControlBinding("INT_DATA");
    AttributeBinding a22 = (AttributeBinding)getBindings().getControlBinding("D_ACCESS");
    AttributeBinding a23 = (AttributeBinding)getBindings().getControlBinding("CASE_NUM");
    AttributeBinding a24 = (AttributeBinding)getBindings().getControlBinding("COURT");
    AttributeBinding a25 = (AttributeBinding)getBindings().getControlBinding("PLAIN");
    AttributeBinding a26 = (AttributeBinding)getBindings().getControlBinding("DEFEN");
    if(coutcase.equals("Interview")) {
    a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    /*a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else if(coutcase.equals("Internet")){
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);*/
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    /*a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else{
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);*/
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);
    }else{
    System.out.println("coutcase is null");
    }

    Hi,
    The easiest way to modify the screens in the Std transactions using ITS is to modify the ITS templates corresponding to that transaction.
    E.g In you case,there will be a ITS service corresponding to the ESS transaction.This ITS service will have  number of HTML templates which will actually correspond to the diffrent screens in the Trascn.What you need to do is find out the HTML template in the ITS service which corresponds to the screen(which you want to modify) in the STd transacn.To do this ,the easiest way is to right click on that Web page and say VIEW SOURCE.It will show you a HTML code with the ITS service name and the template which is being used for that particular screen.
    So after you find out the correct HTML template to be modified,you can simply hide the fields by putting the HTML code lines in between the symbols
      <!   and  -->
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Clearing the forms after default Save Button pressed

    HI,
    in forms 6i how to clear the form after the save button is pressed, ie the form uses default menu and smart bar. the user wants to clear the form once he selects save from the menu or after pressing the save icon...
    any idea...?
    regards
    Kris

    try on-commit trigger on form level through clear_form procedure but cursor remain stay on the same record
    I think your requirement is that when user commits a record a new blank record appear so also add "create_record" procedure ;
    .but u have to apply some logic on that trigger also it ever fires when user edit/insert/delete a record and commit;
    Hope it clears now!

  • Automatically Clearing a Form When Document Closes

    I'm trying to find a way to automatically clear the information in a form without using a reset button. Our forms are used by many individuals, and this way the form will be cleared of data when the next person goes to use it. These forms will be uploaded to the internet on our website. I am sure there is a way to script it, but since I am a new designer user, I haven't been able to figure it out. Thank you!

    When we upload the form to our website, it is a static or dynamic pdf. When you click on the form, it will open in reader, or the full version of acrobat (whatever the user is using). Unless you remember to click on the reset button to clear the form, the form retains the data you have entered when you close the file. Next time you go the website, and again click to open the form, the data will still be there. There is no back end to this form - we do not want the data to be saved, just printed or submitted by email. I have tried this from workstations with just reader, and I still get the same results. Thanks for your input.

  • When clearing a form, is there a way to also clear the photos?

    I have an existing form created using Adobe Pro's form creation. This contains a label tool for adding photos.  When I clear the form, the photos remain. Is there a way to clear out the photos of a form after one has already been linked?
    Thanks,

    OK I understand what you are saying, but I am not as Java Savy as I would like to be.
    I have created the hidden blank icon. Based on another users similar question, I used the following script that you provided for him for the buttonGetIcon Field Method.
    var oIconClear = getField("buttonClear").buttonGetIcon({nFace: 0});
    getField("Picture 1a").buttonSetIcon({oIcon: oIconClear, nFace: 0});
    I believe I still need the buttonSetIcon field method because this script alone did not seem to work.
    Perhaps I am doing everything completely wrong

  • CFDiv - clearing the form after submission

    I am using cfdiv with a data entry form and on submission writes the values to a db,  works great, but, how can I clear the form after submission?
    reloading the page loads it in the cfdiv.
    TIA
    Jbird

    To where are you submitting this form?  Also, are you submitting as a get or a post?

  • Pressing escape button twice clearing the form

    Hello,
    I am using Jdeveloper 11.1.1.6 and noticed below issue only with IE browser
    - Developed a .jsff page fragment, created a taskflow and dragged taskflow onto the .jspx
    - Launched the form , and entered some attributes, by pressing twice 'Escape' button twice, clears the form
    Does any one have idea why form get's cleared by pressing twice button ? Appreciate your timely response
    Thanks in Advance.

    Thanks for your reply.
    The field values are getting clearing while swapping between the tabs.
    However, when i am hitting the button(first tab) "Get department Info" in the first tab the report is generated with the details..
    when i am going back to second tab and after comming back to the first tab, still i could see the report. i dont want the report to be visible when swapping between any tabs..
    Please help.

  • Clear Specific Forms Fields

    How can I clear specific forms fields without resetting/clearing entire PDF document, using a button - Can anyone help with the code?
    I am using Adobe Acrobat 6.0 Professional
    Thanks

    In Acrobat forms you can use the following JavaScript for teh "Mouse Up" action:
    var aClearFields = new Array(); // define array for field names
    aClearFields[0] = "FieldName1"; // first field name
    aClearFields[1] = "FieldName2"; // second field name
    // and so on for all the field names
    this.resetForm(aClearFields);
    // or
    // pass an array of strng names
    this.resetForm(["FieldName1", "FieldName2"]);

  • How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    Darrell,
    Thanks for this response. After I posted mine, I saw that the resetForm JavaScript method is documented as being supported starting with version 10.5: http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/js.html
    But I haven't been able to get it to work. Can you clarify if support was indeed added and if it works for you?

  • Should moveToInsertRow() clear my form fields?

    I have followed the AppModel and the InsertUpdateDelete examples and in these examples after the method "moveToInsertRow" it appears that the form in being cleared so the user can enter new information, this is not happening in my case, what do I need to do so that I can clear the form for an insert? I was assuming the moveToInsertRow() method would do this for me??
    Thanks,
    Ritchie

    Valerie
    I tried this but still to no avail. Can you look at this code and tell me if you see anything wrong with it.
    hrm_phoneRowSet1 is a rowset for all records in the Row set and hrm_phoneRowSet is to show 1 particular record on the screen.
    // If this is the first time in the Application then Current Row = 0
    if (getSessionBean1().getCurrRow() == 0) {
    if (hrm_phoneRowSet1.next()) {
    // Keeps track of the last row we were on before rebuilding screen
    // and is essential for Navigation in the Full Rowset
    getSessionBean1().setCurrRow(hrm_phoneRowSet1.getRow());
    // Keeps track of the last Phone record that was on the screen
    // before rebuilding the screen. Used as a starting point
    // for the 1 record Record Set.
    getSessionBean1().setSeqId(hrm_phoneRowSet1.getBigDecimal("SEQ_ID"));
    hrm_phoneRowSet.setObject(1, getSessionBean1().getSeqId());
    // Execute the query which contains only the one record with
    // the current Sequence Id
    hrm_phoneRowSet.execute();
    hrm_phoneRowSet.next();
    lastNme.setValue(hrm_phoneRowSet.getString("LAST_NME"));
    firstNme.setValue(hrm_phoneRowSet.getString("FIRST_NME"));
    title1.setValue(hrm_phoneRowSet.getString("TITLE_DSC"));
    emailId.setValue(hrm_phoneRowSet.getString("EMAIL_ID"));
    emplId.setValue(hrm_phoneRowSet.getString("EMPL_ID"));
    sectionDsc.setValue(hrm_phoneRowSet.getString("SECTION_DSC"));
    locationDsc.setValue(hrm_phoneRowSet.getString("LOCATION_DSC"));
    busUnitCde.setValue(hrm_phoneRowSet.getBigDecimal("BUSUNIT_CDE"));
    civicNbr.setValue(hrm_phoneRowSet.getString("CIVIC_NBR"));
    strCode.setValue(hrm_phoneRowSet.getBigDecimal("STR_CODE"));
    floor.setValue(hrm_phoneRowSet.getString("FLOOR"));
    workPhn.setValue(hrm_phoneRowSet.getString("WORK_PHN"));
    faxPhn.setValue(hrm_phoneRowSet.getString("FAX_PHN"));
    pagerPhn.setValue(hrm_phoneRowSet.getString("PAGER_PHN"));
    cellPhn.setValue(hrm_phoneRowSet.getString("CELL_PHN"));
    else {
    warn("Cannot navigate to the first record");
    log("PhoneBook: Problem navigating to the first record in Page 1 initialization");
    Thanks,
    Ritchie

  • How do I clear a form text field during validation using JavaScript?

    I am just learning JavaScript and the Acrobat API.  I have a form created in adobe acrobat 9 standard (starting from an existing form in MS Excel).  There is a text field for a Social Security Number.  I have a custom format script and keystroke script and a custom validation script. I would like to add to the existing validation script, that if what is entered doesn't match the validation test, then clear out the field as in erase all the characters that were typed into the field.  I want this to happen no matter what.  So even if someone filled in a valid SSN number and then moved to the next field, but then went back to the SSN field and decided to change their entry and this new entry was "invalid" then clear out the field (do not revert to what was typed in the field originally, even though it was considered valid by the script).  (There is currently no default value for this field.)  Thank you inadvance for you help on this.
    Here is the current validation script:
    // only run when field not blank
    if (event.value != "")
    // RegExp for validation #########
    var re = /^(\d{3})(\d{2})(\d{4})$/
    if(re.test(event.value) == false)
    app.alert("Enter a 9-digit Social Security number with no spaces or special characters (e.g., 555555555). It will be converted to the format 555-55-5555.")
         //Here is where I've tried adding all of these lines, but none of them will clear out what is in the field
              //this.resetForm([event.target.name]);
              //event.target.value == "";
              //getField("SSN 1").value = getField("SSN 1").defaultValue;
              //getField("SSN 1").value == "";
              //event.rc = false;
    And incase these are somehow affecting it, here are the other scripts being processed on this field:
    Keystroke script:
    var input=event.value;
    var chars=input.length;
    if( event.willCommit || chars==8 )this.getField("Name 1").setFocus();
    Format script:
    var re = /^(\d{3})(\d{2})(\d{4})$/
    if(re.test(event.value) == true)
    // add "-"
    event.value = RegExp.$1 + "-" + RegExp.$2 + "-" + RegExp.$3;

    Thank you very much.  I did try that before, but I was using event.value == "";  I guess in this case I'm assigning the value of "", not making the value equal "".

  • How can I clear the form ?

    Hi
    I have two input_text field in the form.
    <h:input_text id="productid" value="#{productBean.productId" required="true">
    </h:input_text>
    <h:input_text id="productName" value="#{productBean.productName" required="true">
    </h:input_text>
    <h:command_button id="search" action="search" value="Search" actionListener="#{productBean.searchDatabase}" type="submit" />
    <h:command_button id="clear" action="clear" value="Clear" actionListener="#{productBean.resetResult} " type="submit" />
    I don't want clear button to validate the required field. If I change type="reset" then it just reset the form to old values. I need to clear the search results stored in productBean.
    Is there any way to invoke the action event with reset button?
    Thanks

    Hi
    I have two input_text field in the form.
    <h:input_text id="productid"
    value="#{productBean.productId" required="true">
    </h:input_text>
    <h:input_text id="productName"
    value="#{productBean.productName" required="true">
    </h:input_text>
    <h:command_button id="search" action="search"
    value="Search"
    actionListener="#{productBean.searchDatabase}"
    type="submit" />
    <h:command_button id="clear" action="clear"
    value="Clear"
    actionListener="#{productBean.resetResult} "
    type="submit" />
    I don't want clear button to validate the required
    field. If I change type="reset" then it just reset the
    form to old values. I need to clear the search results
    stored in productBean.
    Is there any way to invoke the action event with reset
    button?
    Thanks
    Leave your "clear" button as type="submit", but add the attribute immediate="true" to it, along with an action expression that points at a method in your backing bean (maybe something like action="#{productBean.clear}") that is implemented like this:
      public Strng clear() {
        setProductId("");
        setProductName("");
        return (null); // Redisplay current page
      }Because of immediate="true", this action will be invoked immediately (that is, in Apply Request Values phase), after which JavaServer Faces will call Render Response phase to redisplay the current page. This bypasses things like validations and the normal search that your "search" button would do.
    The same general approach works for "cancel" buttons as well.
    Craig McClanahan

  • Auto Clear/Reset form

    I have a search form that is filled out. For example, one of
    the entries for a field is 255. The submit goes to the action page
    where results are displayed. If they hit the back button, the
    original form entries are still there. If I add 1 to 255 to become
    2551 (new search entry) it does not take and 255 is still searched.
    What I would like to do is everytime the search form is
    initiated, I would like to reset/clear it out, so that if they do
    hit the back button to go back, the form will be empty and they
    will have to start over.
    What is the best way to do this ? Or, if I do not clear it
    out and they hit th back button, how do I replace 255 with 2551
    ?

    sounds like browser caching to me...
    try this:
    http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=1075
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Acrobat XI programmatically reset/clear all form fields when opening a PDF form

    I've got a PDF form document that I'm working on.  I'd like to add something to it to programmatically clear or reset all form fields to blank when the document is opened.
    Thoughts/ideas??
    Mucho thanks!!

    You can use the resetForm JavaScript method, either in the initial page's Page Open event or in a document-level JavaScript whic will execute when the document is opened.
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.523.html

  • Sortingtable clears the forms when the column is clicked for the first time

    Hi All,
    I have text fields which will take the conditions for search and result will be displayed in the sorting table of the same form,
    When the search is done for the first time the result is shown in the sortingTable, but when we click any of the column to get it sorted it clears out the whole screen and shows only the search text fields.But when we do a search again in the same form there after the sort works.it does not clear out.
    This happens for the first search after the form is loaded for the first time from the workflow
    appreciate any solution or suggestion
    Thanks
    Pratheep

    Thanks for your reply, it did not work even after setting the sortEnable,
    The issue i find is when the any column is clixked for sorting for the first time all the form variables even if it is under Expansion is lost, but when we do the search again (even with different criteria) the same page and hit the sort column again the form variables are retained

Maybe you are looking for

  • Exposing business services as webservices

    Hi All, Im new to webservices.I have a running java web application. I need to expose some methods as webservices. Can it be possible to create a single ear file,using which i can access webapplication and webservice wsdl file and how Regards, Bhuvan

  • Iterate through all the records in a table using Java API

    Hi All, What is the easiest way to iterate through all the records in a given table using Java API? I cannot find any methods that will return all records in a table and the only way I can use is to perform a free form search with a condition that is

  • Advantages of BW Query in SAP Portal when compared to WEB BEx Analyzer

    Hi What are the advantages of having a BW Query in SAP Portal when compared to WEB BEx Analyzer I had to presention to higher managers of having a SAPPortal for BW report that WEB BEx Analyzer can any one please update me with few points (10-20) that

  • LSMW Standard/Batch Input Method

    Hi,          I am trying to learn LSMW. Can anybody pls tell me what is the meaning of Object & Method in Standard Input method in LSMW? I am having one example of LSMW for updating vendor master. The Object & Method used in this document are 0040 &

  • My iPhone 4s wont recognise my sim card what can I do?

    my iphone 4s wont recongise my sim card, and I cant use my phone