Partial Submit button and fields resetting

Hello
I have a button with partialsubmit=true
In the button's action listner event I open a popup and this popup contain RichInputText fields.
Before open the popup I am reset all of these RichInputText values by
this.geRichInputText1().resetValue();
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(this.geRichInputText1());But each time I open this popup I don't see these RichInputText figures are reset. It just show off what was in the previous.
when button's partialsubmit=false, this works.
Is there a way to reset with partialsubmit=true
Thanks
Edited by: deshan on Jan 31, 2011 2:45 PM

Try setting the contentDelivery property of your popup to "lazyUncached". Otherwise the content of the popup is cached by default.
For more info check this: http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_popup.html

Similar Messages

  • Difference between Submit Button and Button

    Hi,
    Please help me understanding the difference bewteen the following cases.
    1) Submit Button + ActionType : None
    2) Submit Button + Action Type :fire partial action
    3) Submit Button + Action Type : Fire Action
    4) Button + Action Type : fireAction
    5) Button + Action Type : firePartialAction
    My Understanding is 1st and 4th Both submits the form.
    Also, please let me know, is it a valid scenario where we use the SubmitButton and still gives ActionType. What difference it makes when action type is given with submit button.
    I understand that when we use 4th then it submits the form and whereas in case of 5th it doesnt.
    Thanks in advance
    Saurabh Agrawal

    Hi,
    Thanks for your replies.
    Actually i wanted to understand this in context of the issue we are facing.
    We have a text field and a button besides it. We have a TAB OUT even associated with the text field which is captured using firePartialAction event. Also, the button is a SUBMIT BUTTON with a partialFireAction associated with it.
    1) When you give % in textfield and tab out a popups come and load the data in a table - WORKS FINE
    2) When you dont enter anything in textfiled and clicks on the button, same popups comes and loads data into the table. - WORKS FINE
    3) When you give % in Text Field and clicks on the BUTTON, from JDEV, we verified that TAB OUT event gets triggered.Once that event is over, we can see the HOUR GLASS which doesnt go away. --- ISSUE
    Resolution Tested : When i just remove ACTIONTYPE from button and do NAVIGATION - 3, issue is resolved.
    Also, if i make that button as BUTTON and give FIRE ACTION, issue is resolved.
    Now the main concern is the same combination SUBMIT BUTTON and ACTIONTYPE: firePartialAction works fine in 11i and causes issue in R12.
    Please let me know your comments.
    Thanks in advance
    Saurabh Agrawal

  • SUBMIT button and VALUE clause

    I have a jsp screen like below.It shows in a tabular form all the employee data.
    EMPLOYEE DETAILS
    EmpId_______ProcessEmpSalary_____ProcessEmpLeave
    1
    2
    3
    4
    5
    6
    7
    8
    NEXT______PREV____LAST____FIRST
    Under ProcessEmpSalary ,ProcessEmpLeave of each employee I have a submit button and clicking on it the particular employee id has to be processed (for salary or leave).Now I want the employee id to be passed when the submit button of that particular employee is pressed.
    So what I am doing is I put the emp id in the value clause and achieve my purpose.But this results in the display of the emp id over each submit button.It looks ugly and so
    I dont want to use the VALUE clause of the SUBMIT button.........
    So friends please tell me how to achieve it.Someone suggested me to use IMAGE but it doesn't work.Some suggested I use hidden varaible ,but I just don;t understand how is that possible.Some suggested me use javascript to pass the value and throw the form...this make sense but problem is I don't have time to learn javascript now.So please help with some code example how to achieve this result.

    Here is my jsp as it is .Employee id was used for example.In my application it is Submission_Id
    which is used as the key.
    Note:
    The method is given below after the end of this JSP code.
    SubmissionList.jsp
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@page import = "oracle.portal.provider.v1.*, oracle.portal.provider.v1.http.*, oracle.portal.utils.v1.*, java.sql.*, ccrspackage.*" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY BGCOLOR = #FFCC00 FONT SIZE = "+2" >
    <FORM ACTION = 'SubmissionList.jsp' method='post'>
    <%
    //retrieve the existing session
    HttpSession Session= request.getSession(true);
    CCRS OCCRS = null;
    Connect OConnect = null;
    try
    if (request.getMethod().equals("POST"))
    if ( request.getParameter("Exit") != null)
    response.sendRedirect("Default.jsp");
    else
    OCCRS = (CCRS)Session.getValue("OCCRS");
    if (request.getParameter("Search") != null)
    OCCRS.InitialSettingForSubmissionList();
    else
    OCCRS.CreatePageOfSubmissionList(request);
    else
    OConnect = (Connect)Session.getValue("OConnect");
    OCCRS = new CCRS(OConnect);
    OCCRS.InitialSettingForSubmissionList();
    Session.putValue("OCCRS",OCCRS);
    catch (Exception e)
    OCCRS.ProcessError(e);
    //MESSAGE (IF ANY)
    out.println("<TABLE ALIGN=CENTER>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = RED>");
    out.println("<B>");
    out.println(OCCRS.GetDisplayMessage());
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    if (OCCRS.GetShowRecord() == false)
    String TempValue = "";
    String TempSelected = "";
    String TempText = "";
    out.println("<TABLE ALIGN=CENTER>");
    //Show all the drop down list
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Year");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Year' >");
    while (OCCRS.NextItrScrFiscal_Year())
    TempValue = OCCRS.GetItrScrFiscal_Year();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Year();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Period");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Period' >");
    while (OCCRS.NextItrScrFiscal_Period())
    TempValue = OCCRS.GetItrScrFiscal_Period();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Period();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Province");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Province_Code' >");
    while (OCCRS.NextItrScrProvince_Code())
    TempValue = OCCRS.GetItrScrProvince_Code();
    TempSelected = OCCRS.GetItrSelectedScrProvince_Code();
    TempText = OCCRS.GetItrScrProvince_Desc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Facility");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Facility_Code' >");
    while (OCCRS.NextItrScrFacility_Code())
    TempValue = OCCRS.GetItrScrFacility_Code();
    TempSelected = OCCRS.GetItrSelectedScrFacility_Code();
    TempText = OCCRS.GetItrScrFacility_Name();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + " " + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Status Code");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Status_Code' >");
    while (OCCRS.NextItrScrStatus_Code())
    TempValue = OCCRS.GetItrScrStatus_Code();
    TempSelected = OCCRS.GetItrSelectedScrStatus_Code();
    TempText = OCCRS.GetItrScrStatusDesc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    // SHOW 2 SUBMIT BUTTONS ,"Next" and "Close"
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    out.println("<TD ALIGN=CENTER>");
    out.println("<INPUT TYPE = 'SUBMIT' NAME = 'ShowRecord' value ='ShowRecord'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value ='Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    else
    out.println("<TABLE ALIGN=CENTER>");
    //THE COLUMN NAME IS SHOWN
    for(int Row = 0;Row <= OCCRS.GetFilledRow();Row++)
    if (Row == 0)
    out.println("<TR BGCOLOR = 'Black' >");
    else
    out.println("<TR BGCOLOR = 'Teal' >");
    for(int Col = 0;Col <= OCCRS.GetFilledCol();Col++)
    out.println("<TD>");
    out.println("<B>");
    out.println("<FONT COLOR = WHITE >");
    out.println(OCCRS.ReturnNewPageElement(Row,Col));
    out.println("</FONT>");
    out.println("</B>");
    out.println("</TD>");
    out.println("</TR >");
    out.println("</TABLE>");
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    if (OCCRS.GetMoreRecExist())
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Next' value ='Next'>");
    out.println("</INPUT>");
    out.println("</TD>");
    if (OCCRS.GetPageNumber() > 0)
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Prev' value ='Prev'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'First' value ='First'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Search' value ='Search'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value = 'Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    %>
    </FORM>
    </BODY>
    </HTML>
    Here is my method in CCRS class
    This method create a multidimensional array of fixed row
    and column .This array is populated with all the data that has to
    be displayed ,and also satisfies the condition specified by the user.
    This array is subsequently used in the JSP (which calls this method)
    and displays all the row.
    public void CreatePageOfSubmissionList(HttpServletRequest request) throws Exception
    ResultSet ResSet;
    ShowRecord = true;
    DisplayMessage = "";
    if (request.getParameter("ShowRecord") != null )
    ScrProvince_Code = request.getParameter("Province_Code").trim();
    ScrFacility_Code = request.getParameter("Facility_Code").trim();
    ScrFiscal_Year = request.getParameter("Fiscal_Year").trim();
    ScrFiscal_Period = request.getParameter("Fiscal_Period").trim();
    ScrStatus_Code = request.getParameter("Status_Code").trim();
    LastSubmission_Id = 999999999;
    MathematicalSign = "<";
    else
    if (request.getParameter("Release") != null )
    ScrSubmission_Id = request.getParameter("Release").trim();
    Submission_Id = ScrSubmission_Id;
    ReleaseSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Process") != null )
    ScrSubmission_Id = request.getParameter("Process").trim();
    Submission_Id = ScrSubmission_Id;
    ProcessSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Remove") != null )
    ScrSubmission_Id = request.getParameter("Remove").trim();
    Submission_Id = ScrSubmission_Id;
    RemoveSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Prev") != null )
    PageNumber = PageNumber - 1;
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(PageNumber);
    LastSubmission_Id = Temp.longValue();
    MathematicalSign = "<=";
    else
    if (request.getParameter("First") != null )
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(0);
    LastSubmission_Id = Temp.longValue();
    PageNumber = 0;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Next") != null )
    PageNumber = PageNumber + 1;
         VecPrevSubmission_Id.addElement(new Long(FirstSubmission_Id));
    MathematicalSign = "<";
    //initialize the page array
    for(int Row = 0;Row <= MaxPageRow;Row++)
    for(int Col = 0; Col <= MaxPageCol;Col++)
    NewPage[Row][Col] = "";
    Submission_Id = LastSubmission_Id + "";
    Province_Code = ScrProvince_Code;
    Facility_Code = ScrFacility_Code;
    Fiscal_Year = ScrFiscal_Year;
    Fiscal_Period = ScrFiscal_Period;
    Status_Code = ScrStatus_Code;
    BuildQueryForSubmissionList();
    ResSet = Stmt.executeQuery (Query);
    ResSetMetaData = ResSet.getMetaData();
    //remember NumOfFields is O is java variable which starts with 0 and not 1,
    //that is the reason I am subtracting 1 from oracle returned value.
    int NumOfFields = ResSetMetaData.getColumnCount() - 1;
    FilledCol = -1;
    for(int Col = 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[0][Col] = ReturnChangedColumnName(Col + 1,ResSetMetaData);
    FilledCol = FilledCol + 1;
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Remove";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Process";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Release";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Preview";
    //Note at this point row number 0 of the array is having the field names
    //Remaining rows (i.e 1,2...etc) will now be populated with field data
    FilledRow = 0;
    MoreRecExist = false;
    while(ResSet.next())
    if (FilledRow == MaxPageRow)
    MoreRecExist = true;
    break;
    FilledRow = FilledRow + 1;
         if     (FilledRow     ==     1)
              FirstSubmission_Id     =     Long.parseLong(ReturnColumnData(1,ResSet));
    FilledCol = -1;
    for(int Col= 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[FilledRow][Col] = ReturnColumnData(Col + 1,ResSet);
    FilledCol = FilledCol + 1;
    LastSubmission_Id = Long.parseLong(ReturnColumnData(1,ResSet));
    Status_Code = ResSet.getString("Status_Code");
    if (Status_Code == null)
    Status_Code = "";
    else
    Status_Code = Status_Code.toUpperCase().trim();
    FilledCol = FilledCol + 1;
    //IF SUBMISSION HAS ONLY BEEN REGISTERED THEN SHOW A REMOVE BUTTON
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Remove' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PROCESS BUTTON IF SUBMISSION HAS BEEN BEEN REGISTERED
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' Name = 'Process' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE RELEASE BUTTON IF THE SUBMISSION HAS BEEN BEEN PROCESSED
    if (Status_Code.equals("P"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Release' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PREVIEW BUTTON IF THE SUBMISSION HAS BEEN PROCESSED
    if (Status_Code.equals("P") ||
    Status_Code.equals("C") )
    NewPage[FilledRow][FilledCol] =
    "<img src=\"pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";
    // "<img src=\"/appl/development/ccrs/images/pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";

  • Can you stylise the Submit button and can you manually place it

    Hello
    I have a large pdf document with the form in the middle of it, are you able to style the submit button and are you able to manually place it on a specific page when using FormCentral?
    Kind Regards
    Eugene

    Hi Eugene,
    There is a 500 field limitation, regardless of what subscription level you have. Please see: Maximum Number of Fields Reached
    Best,
    Sara

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    What were you expecting when using an accesskey?
    I use that also on this forum to submit my posts:
    <pre><nowiki><input accesskey="s" class="btn btn-important" value="Post Reply" type="submit">
    </nowiki></pre>

  • I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Cent

    I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Central in order to use this feature. What gives? The Adobe site gave me the impression that I would have this feature after purchasing the new upgrade. I would not have purchased the upgrade, let alone five of them had I know this. Am I missing something?

    Acrobat XI comes with the Fromscentral AIR application and the ability to create PDF forms authored in Formscentral. To have more than the free (1 form with 50 responses) level account you need to sign up for a Formscentral subscription.
    Andrew

  • Submit button and using form fields

    Hello all, I'm a bit new to using LiveCycle.  I created a form in acrobat. I have all my fields working properly but I ran into a snag.  Seems as though people with reader can't open and fill in my form because of a saving issue.  So I figured... let's try LiveCycle. I opened the same form.
    This is what I can figure out: I need a submit button that can attach the current pdf to a new email and then grab some of the field values from the form.  These field values are used to fill in the subject and the "To" field in outlook. I had a button that could do this in acrobat, but it doesn't seem to work in LiveCycle.  Can someone please offer some guidance?  Thanks so much.
    This is what I had on the acrobat form that worked before LiveCycle if it helps at all (used from an adobe sample):
    // This is the form return e-mail. Its hardcoded
       // The form will return to the manager chosen from the dropdown bob
       var cToAddr = "[email protected]";
       // First, get the client CC e-mail address
       var cCCAddr = this.getField("manager").value;
       // Now get the beneficiary e-mail only if it is filled out
       var cBenAddr = this.getField("PlaceHolderEmail").value;
       // Get the name and req number
       var cName = this.getField("EmployeeName").value;
       var cNumber = this.getField("Department").value;
       // Set the subject and body text for the e-mail message
       var cSubLine = "Absence Notification - " + cName + " - " + cNumber;
       var cBody = "Thank you for submitting this form.\n" +
                   "Save the mail attachment as a record";
       //** Send the form data as an PDF attachment on an e-mail
       // Build the e-mail URL
       var cEmailURL = "mailto:" + cCCAddr + "?cc=" + cBenAddr
                     + "&subject=" + cSubLine
                     + "&body=" + cBody;
       this.submitForm({cURL: cEmailURL, cSubmitAs:"PDF", cCharSet:"utf-8"});

    Here is a sample form for your reference..
    https://acrobat.com/#d=CK4QgXn38l49bzQlhWtKSA
    You need to use the rawValue to get the field value in LiveCycle..
    for example
          // First, get the client CC e-mail address
         var cCCAddr = manager.rawValue;
    Thanks
    Srini

  • Dynamic Submit Button- Required Fields

    I needed a dynamic submit button that would cc a field from the form.  I found the following script and it works great, but it doesn't give an error message if someone didn't fill in a required field like a regular submit button would. Is it possible to use the script below but to check for required fields?
    // This is the form return e-mail. Its hardcoded
    // so that the form is always returned to the same address
    // Change address on your form
    var cToAddr = "[email protected]";
    // First, get the client CC e-mail address
    var cCCAddr = RegionalDirector;
    // Set the subject and body text for the e-mail message
    var cSubLine = "909 Camp Visitation Report-" + xfa.resolveNode("#subform[0].#subform[7].Country"); var cBody = "Thank you for submitting your 909 report.\n" + "Save a copy for your records";
    // Send the form data as an FDF attachment on an e-mail
    event.target.mailDoc({
              bUI: true,
              cTo: cToAddr,
              cCc: cCCAddr,
              cSubject: cSubLine,
              cMsg: cBody

    Hi,
    stefan's example uses a method that seems a bit clumsy or maybe that was the only way it could be done in 2006.  Assuming your email button is called EmailSubmitButton yo can use;
    EmailSubmitButton.event__click.submit.target = emailtarget;
    where emailtarget is a string in this format
    mailto:emailaddress?cc=emailaddress?bcc=emailaddress?subjext=text?body=text
    The bold parts you can't change but you can leave out, except for the mailto and the to email address that follows it.
    Regards
    Bruce

  • Submit Button and New Pages

    Hello all~
    The questions i have may be too complicated for this forum,
    but as I'm struggling desperately, I thought I'd give it a try.
    I bought a premade site almost a year ago, and I managed to
    update it myself, but I've never been able to get the submit button
    on the contact form to work. The reset button works - without any
    help from me, but nothing happens when the submit button is
    clicked. I'm trying to rekindle my business and so am in need to
    update the site, but I can't seem to figure these things out.
    Second problem, I need to rearrange some of the pages and
    also add new ones, but I tried adding a new page, and can't figure
    out how to find the number of the pages that I add. The
    actionscript looks like this:
    on (rollOver) {
    if (_root.link != 7)
    gotoAndPlay(2);
    on (releaseOutside, rollOut) {
    if (_root.link != 7)
    gotoAndPlay(11);
    on (release) {
    if (_root.link<>7) {
    _root.robot.play();
    _parent["b"+_root.link].play();
    _root.link = 7;
    _root.play();
    How do I know what the root.link is for any given movie clip?
    If any of that makes sense to anyone, please email me or
    reply. I am frustrated beyond belief!!
    L. Monique

    the movieclips are name b1, b2,... etc and, if your buttons
    are movieclips, they are on the timeline that contains your
    movieclip buttons and, if your buttons are true buttons, they are
    on the parent timeline of the timeline that contains your
    buttons.

  • Fighting with Submit Button and Return Address / distributing Forms

    I go crazy, too ! We designed some smart forms for a new evaluation process, too, and had a successfully test within our IT collegues. Now we handed the process over to the users, and the problems are on!
    We made sure that everyone uses the same version of Adobe 9.1.2 Pro - but not 2 users do have the same results.
    We found following 2 major issues:
    1) When opening the _distributed.pdf - users either completly missing the pink bar with  Highlight fields / Submit Form
    or, very odd, just the Submit Form button
    2) For those who fortunatly have the Submit Button, another odd thing happens:
    The Send form correctly shows the to: address .....
    Our Desktop Email Application is Notes...
    Guess what .... Now the Email adress changes to [email protected]   ( this worked fine in our testings before...)
    Do you have any clue from where this address is pulled ???? We checked the identitity Info in the Adobe installation at the users computers, the email and name entries are correct there.....
    Please help !!!

    I am pretty sure the answer is in the script. I have put together pieces of script from other suggestions and I am pretty sure I have ascrewed something up  along teh way. I have looked at the attached link and that is where I got some of the script you see below. I am sure you will refer to me as the hatchet person who chopped the script up. sorry. (It is in the Mouse Up) This does work, sort of...It will give the user the message that the required fields are not filed in if they are blank, but it will send the email, but without the custom message in the subject line.
    if (employeename.rawValue != null || employeename.rawValue != "") {
    vSubject  = "Form completed by " + employeename.rawValue;
    vBody = "The form has been sent by " + employeename.rawValue;
    if  (completedate.rawValue != null || completedate.rawValue != "") {
    vBody   = vBody + " on " + completedate.rawValue;
    if  (EmployeeID.rawValue != null || EmployeeID.rawValue != "") {
    vBody = vBody + " Your ID is: " + EmployeeName.rawValue;
    var oDoc = event.target;
    oDoc.mailDoc({
         bUI: false, 
         cTo: "[email protected]",     cSubject: "Statement from " + EmployeeName.rawValue + "

  • Manually created submit buttons & mandatory fields

    Hi,
    I included a Submit & an Email button in some of my forms.  I've set them up as Regular buttons and coded them myself to do what I want eg:
    if(xfa.host.messageBox("Please save this form before emailing or data will be lost","Save Form",1,1))
        app.execMenuItem("SaveAs");
    var sEmail = form1.Pg2.PtESF.Mgremail.rawValue;
    var sSubject = ("Permit to Train Request by " + form1.Pg1.PtASF.FirstNameFld.rawValue + " " + form1.Pg1.PtASF.LastNameFld.rawValue);
    var sBody = "Please approve the Permit to Train Request as attached.";
    event.target.submitForm({cURL:"mailto: "+ sEmail +"?subject=" + sSubject +"&body=" + sBody,cSubmitAs:"PDF",cCharset:"utf-8"});
    If I set them up as Submit buttons, they don't try to run the script more than once.  I assumed this was because I had the code built in with the Submit option and it ran that as well as my own code.
    So I changed the button to be a Regular button and then it worked perfectly - except for one thing.
    It no longer validated the mandatory fields.
    Can anyone tell me what's built into the Submit button (that I can't see), that I need to reproduce in my script for my regular button?
    Thanks,
    Peta

    Hi,
    The Submit buttons validate the from behind the scenes.
    You can use execValidate() in an if statement, and if passes then execute script.
    See an example here for execValidate():
    http://assure.ly/hM2A5y (see last button)
    http://assure.ly/flbjXB
    Both of the above examples use validationState and cancelAction so are targeted to Acrobat/Reader version 9.1. Please note that execValidate() can be used in earlier versions:
    http://assure.ly/lZhrSS
    http://assure.ly/dYQFb4
    Hope that helps,
    Niall

  • Add advanced action to submit button and setting different objectives score for the same course

    Hi, i would like to increase a counter in a quiz slide when the user press the submit button, using advanced actions.
    It's like if the submit button is somehow inhibited from certain options, and i cannot find how to add an advanced action to it.
    what i need, is to allow unlimited attempt until the user selects the right answer. each time the user click on submit, a counter increases by one. When user finally select the right answer, we read the counter value and assign a different score, depending on the attempt (for example: 1st attempt=20 points, 2nd attempt=10 points, 3rd attempt=0 points)
    After that, i need to save all score obtained for a certain group of quiz slide separately from the "main score" (i think the main score is stored in cmi.objectives.0.score)  to have partials scores for a course. I examined the "advanced interactions" panel and i noticed that for each quiz slide there is a specific interaction ID and each quiz slide is associated typically to the same Objective ID. What i need is to associate different groups of slides to different Objective ID's.
    In Storyline i was able to do this by passing to the lms a cmi.objectives.n.score (where "n" is the place in the objectives array) and i did it by executing a javascript on success for each question slide. (each javascript added the score of previous slides in the same group to obtain the total score of the group to be passed to lms with a specific function).
    examining captivate scorm functions in the published scormdriver.js i found the following function
    function SCORM_SetObjectiveScore(strObjectiveID,intScore,intMaxScore,intMinScore)
    so i think it can be done the same way in captivate executing javascript in the right way.
    Is there also an easier solution to write different scores to different obectives in the same course?
    many thanks for any help!

    Have a look at:
    Question Question Slides in Captivate - Captivate blog
    Question Question Slides - Part 2 - Captivate blog
    Indeed, Submit button is part of the Question slide, not a normal button. You can add a custom shape button, but it will never replace what happens when the Submit button is clicked: validation of the answer, showing captions, adding to score etc. Making the score depending on the attempt is not possible with default functionality, it is possible with custom question slides, but then the reporting to LMS is another issue. You should try to do it by JS, or if you only need SWF-output you could use the Master widget by InfoSemantics.
    Link score to attempts in Custom questions - Captivate blog
    Lilybiri

  • Email Submit Button and Reader 7.0?

    I was just wondering if the email submit button works in reader 7.0? I created the submit button so that it sends out the entire PDF form and the data instead of just the raw data, but someone tested it in reader 7.0 and it gives a "this operation is not permitted" error. I have professional 7.0, and it works great for me. So I was wondering if this was something to do with the version of adobe?
    - Natalie

    Hi Natalie,
    To email the entire PDF in the free Reader, you would need to "reader extend" the form using LiveCycle Reader Extensions see:
    http://www.adobe.com/products/server/readerextensions/pdfs/readerextensionsserver_ds.pdf
    You can however email the XML data instead (as an alternate option)and this will work in the free Reader as well as in Acrobat.
    Catherine
    Adobe Systems

  • Submit Button and Email Ady issu

    hi all .. i have an issue here.. I would like to insert two
    email addresses that pop up your email app, and at the bottom of
    message box i have a submit button as well.. i would like that to
    goto to an email as well.. I am sucha noob at this its not even
    funny. i tried flashvalue email button inflash tut but got nothing
    out of it.. Can someone please get me walked through this with the
    most basic instructions out there? thanks so much

    to bring up the users email program use:
    getURL('mail:[email protected]');
    but if you're trying to use the 'submit' button to send a
    message that was entered into a textfield on your site, you can't
    pass info to the program, and you must use the LoadVars class, and
    have a server-side script like php, that will process the info pass
    in and send the email.

Maybe you are looking for

  • Download Error on Mavericks (mac)

    When I go to the Creative Cloud application on the desktop, I go to the Apps tab and I get "Download Error" and when I try to reload the application, the error persists.  I'm on a macbook running Mavericks, I've deleted the AAMUpdater (though it crea

  • IPhoto Library file structure

    I have consolidated a large number of photos into rolls with meaningful names (e.g. NOT Roll 108 etc.,) and when the roll is empty in iPhoto the title disappears. However, if I try to use othr applications to access the originals, all the old, empty

  • File to idoc scenario (split message)

    hello everybody i have a file (xml) -> XI -> Idoc scenario sometimes idoc message is so much big and i have problem to process it. so i would like split message in more idoc but i need decide a cut-point example in file i have 200 row and i don't wan

  • STOCK TRANSPORT ORDER UNDER SALES ORDER SPECIAL STOCK

    Hello, we have a plant A that produce the same material for some clients and for another plant B (another company). Plant A works under sales order special stock. Plant A produce for sales order (other clients) and for cross-company purchase order (S

  • Resource Availability Summary ASCP Bench 11.5.9

    In this form from ASCP I can only get the following columns: Org, Dept./Line, Resource, From Date, To Date, UOM and Total Available. I know on the MRP bench there is additional data like Net Available. Is there a profile that needs to be set or is it