Pass two Form Fields in MM_editRedirectUrl

Following update to an Access database, the update page code redirects to the initial input page. The redirect parameters need to include the event ID and the event name. It is currently running by including only the event ID. I can't seem to figure out how to also include the event name - which needs to be returned with the name "event." The event name is passed to the update page as a parameter, and I have it stored in a hidden field, which I then want sent back. Nothing I have tried works. Here is the code:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/eventCalendar.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If
' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
  If condition = "" Then
    MM_IIf = ifFalse
  Else
    MM_IIf = ifTrue
  End If
End Function
%>
<%
If (CStr(Request("MM_update")) = "attendeeUpdate") Then
  If (Not MM_abortEdit) Then
    ' execute the update
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_eventCalendar_STRING
    MM_editCmd.CommandText = "UPDATE whosComing SET attendeeName = ?, hulllNo = ?, location = ?, email = ? WHERE recID = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 60, Request.Form("attendeeName")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 5, 1, -1, MM_IIF(Request.Form("hullNo"), Request.Form("hullNo"), null)) ' adDouble
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 60, Request.Form("location")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 60, Request.Form("email")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 5, 1, -1, MM_IIF(Request.Form("MM_recordId"), Request.Form("MM_recordId"), null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "eventwhoscoming.asp?ID=" & Request.Form("eventID") ------------need to include the event name as a parameter here
    If (Request.QueryString <> "") Then
      If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
        MM_editRedirectUrl = MM_editRedirectUrl
      Else
        MM_editRedirectUrl = MM_editRedirectUrl
      End If
    End If
    Response.Redirect(MM_editRedirectUrl)
  End If
End If
%>
<%
Dim rswhosComing__MMColParam
rswhosComing__MMColParam = "0"
If (Request.QueryString("recID")  <> "") Then
  rswhosComing__MMColParam = Request.QueryString("recID")
End If
%>
<%
Dim rswhosComing
Dim rswhosComing_cmd
Dim rswhosComing_numRows
Set rswhosComing_cmd = Server.CreateObject ("ADODB.Command")
rswhosComing_cmd.ActiveConnection = MM_eventCalendar_STRING
rswhosComing_cmd.CommandText = "SELECT * FROM whosComing WHERE recID = ?"
rswhosComing_cmd.Prepared = true
rswhosComing_cmd.Parameters.Append rswhosComing_cmd.CreateParameter("param1", 5, 1, -1, rswhosComing__MMColParam) ' adDouble
Set rswhosComing = rswhosComing_cmd.Execute
rswhosComing_numRows = 0
%>
<%
Dim rswhoscomingEvent__MMColParam
rswhoscomingEvent__MMColParam = "1"
If (Request.QueryString("recID") <> "") Then
  rswhoscomingEvent__MMColParam = Request.QueryString("recID")
End If
%>
<%
Dim rswhoscomingEvent
Dim rswhoscomingEvent_cmd
Dim rswhoscomingEvent_numRows
Set rswhoscomingEvent_cmd = Server.CreateObject ("ADODB.Command")
rswhoscomingEvent_cmd.ActiveConnection = MM_eventCalendar_STRING
rswhoscomingEvent_cmd.CommandText = "SELECT * FROM whosCominglist WHERE recID = ?"
rswhoscomingEvent_cmd.Prepared = true
rswhoscomingEvent_cmd.Parameters.Append rswhoscomingEvent_cmd.CreateParameter("param1", 5, 1, -1, rswhoscomingEvent__MMColParam) ' adDouble
Set rswhoscomingEvent = rswhoscomingEvent_cmd.Execute
rswhoscomingEvent_numRows = 0
%>
<div id="docHdr">
  <script language="JavaScript">
  <!--
  document.write("<CENTER><H2>Who's Coming to the " + "<%=Request.QueryString("event")%>" + " - Update Me</H2></CENTER>");
  //-->
  </script>
        </div>
        <div id="docBody">
      <div id="listMe">
      <form ACTION="<%=MM_editAction%>" METHOD="POST" name="attendeeUpdate" id="attendeeUpdate">
          <fieldset id="attendeeInfo" name="attendeeInfo">
          <legend class="legend">Update Me—Attendee Information</legend>
          <br />
          <label for="attendeeName">First and Last Name:</label>
          <input name="attendeeName" type="text" id="attendeeName" tabindex="1" value="<%=(rswhosComing.Fields.Item("attendeeName").Value)%>"  size="40" maxlength="82" />
          <br />
          <label>Hull Number:
            <input name="hullNo" type="text" id="hullNo" tabindex="2" value="<%=(rswhosComing.Fields.Item("hulllNo").Value)%>" size="40" maxlength="5" />
<br />
            Location:
            <input name="location" type="text" id="location" tabindex="3" value="<%=(rswhosComing.Fields.Item("location").Value)%>" size="40" maxlength="82" />
            <br />
            Email:
            <input name="email" type="text" id="email" tabindex="4" value="<%=(rswhosComing.Fields.Item("email").Value)%>" size="40" maxlength="48" />
            <br />
            <br />
            <input type="submit" name="listButton" id="listButton" value="Update Me" tabindex="5" />
            <input type="reset" name="reset" id="reset" value="Reset" />
   <br />
            <br />
          </label>
        </fieldset>
          <input type="hidden" name="MM_update" value="attendeeUpdate" />
          <input type="hidden" name="MM_recordId" value="<%= rswhosComing.Fields.Item("recID").Value %>" />
          <input type="hidden" name="eventID" value="<%= rswhosComing.Fields.Item("eventID").Value %>" />
          <input type="hidden" name="eventName" value="<%=Request.QueryString("event")%>" />
      </form>
      </div>
      </div>
The whosComing recordset contains the following fields:
recID
eventID
attendeeName
hullNo
location
email

MM_editRedirectUrl = "eventwhoscoming.asp?ID=" & Request.Form("eventID") & "&event=" & Request.Form("eventName")

Similar Messages

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

  • Addition of two form fields

    I have two form fields getting their record from a data base, they both get numbers, and in the same form, I would like to add a third field, and then get it value by putting the two other fields together,
    Here is what I want:
    I have:
    x = field one (get value from database, Number)
    y = field two (get value from database, Number)
    I would to have as final result:
    z (form field three) = x + y
    Java or whatever else that work, (I am using Dreamweaver CS5)
    thanks

    I assume that you are working with a server side code in which case just use that.
    For instance, if using PHP the example would look like
    <?php /* the following values will be obtained from the database*/
    $rowDatabase['x']=53;
    $rowDatabase['y']=104;
    ?>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <input name="x" type="text" readonly="true" value=<?php echo $rowDatabase['x']; ?> /> +
    <input name="y" type="text" readonly="true" value=<?php echo $rowDatabase['y']; ?> /> =
    <input name="z" type="text" readonly="true" value=<?php echo $rowDatabase['x']+$rowDatabase['y']; ?> />
    </body>
    </html>

  • Passing many form fields to servlet

    Hi all,
    In my web application I need to populate a class with form values.
    From inside a JSP, it's quite easy:
    <jsp:useBean id="beanId" class="myClass" />
    <jsp:setProperty name="beanId" property="*"/>And the values are set automatically.
    Can use something similar to get form fields from inside a servlet? How can I have a bean instantiated with form values?
    Thanks!

    Not in the standard API, no.
    However the [url http://jakarta.apache.org/commons/beanutils/]Jakarta commons beanutils provides some handy utilities to do just this.
    Specifically the method BeanUtils.populate(Object bean, Map properties) will do what you are after - and IMO better than the standard JSP setProperty tag, because it won't treat empty string as if the parameter wasn't there.

  • How do I pass a form field to javascript?

    Hello,
    I want to pass a value from my JSF form and popup a window to allow users to pick a value. Then return the value to the field I passed.
    This is not working, the field passed is always null;
    Thanks
    Frank
    I call my window popup like this from hyperlink onClick:
    Popup("form1:doctorName");return false;
    Here is my javascript Window popup:
    <script language="JavaScript" type="text/javascript">
    function Popup(destination) {
    var FieldValue = document.getElementById(destination);
    var win=window.open("selectDoctor.jsp?name="+FieldValue, "DoctorLookup", "left=100,top=10,width=480,height=480,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
    win.focus();
    </script>
    Here is the destination JSF page:
    public void init() {
    javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
    String name = req.getAttribute("name");
    name is always null;

    Does this help? http://blogs.sun.com/divas/entry/adding_a_popup_window_to

  • Passing single form field to recordset

    I have a form and I want to pass one field from that form as a parameter to a recordset that would be used to create a dynamic table. I don't want to submit the form because I need to create the dynamic table to get information to fill out other fields in the foirm. Is there a way to do this? Using CS3 DW. Any help is appreciated.

    Narayan,
    Please don't post the same question twice. If you don't get an answer, it's OK to "bump" it by replying to your own question. You've already asked this question here:
    issues while invoking external URL
    Sergio

  • Combining two form fields from the same document, into one form field?

    I have a field called "first name" and one called "last name".  How do I create a third field called "full name".  I want it to just combine the first two.  Any ideas?

    In the field's calculation tab (under Custom Calculation), enter:
    event.value = this.getField("first name").value + " " + this.getField("last name").value
    Message was edited by: try67
    Forgot to paste a part of the code...

  • Forms personalyzation, passing Form field values to SRS concurrent request.

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transactions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

    Hi,
    You can use FND_REQUEST.SUBMIT_REQUEST to submit a concurrent progrm with parameters given.
    For example, get the invoice number into v_invoice_no and call a function included code bellow.
    FND_REQUEST.SUBMIT_REQUEST(
    <app_short_name>,
    <concurrent_short_name>,
    to_char(SYSDATE,'DD-MON-YYYY HH24:MI'),
    FALSE,
    v_invoice_no,chr(0),'','','','','','','','',
    '','','','','','','','','','');-- 100 ARGUMENTS FROM THE BEGINNING
    Where chr(0) must be the last argument.

  • Trying to dynamically output form fields returns URL values

    Hello,
    If there is a better way to go about this (which is quite likely), please let me know how to go about it.
    I'm working on some code that is supposed to dynamically set the form variables as regular variables so that we can be lazy and not have to refer to the variable with form.somevariable name.
    That part works perfectly.  Until I start testing for URL conflicts in which a URL variable has the same name.  For instance. . .
    I have a form that passes two variables; FirstName and LastName.  If I hit the page, the form shows up, I input a first and last name and click submit.  The code works perfectly.
    However, if I have URL variables with the same names, the code reports the url variable values instead of the form values.
    Some sample values;
    url.FirstName = Joe
    url.LastName = Black
    form.FirstName = Steve
    form.LastName = White
    My code that exposes the form variable will correctly find the form field names, but then when I 'evaluate' the value of the given form field, it will return the value of the URL variable of the same name rather than the form variable.
    What I am really wanting (as I described briefly up above) is to have code that automatically converts client, URL and Form variables into 'regular variables' so that you don't have to write lots of extra code grabbing them later on.  Frameworks like CFWHEELS and ColdBox do this by default, but at the company I work out, we aren't using any of them.  I need it to expose the URL variables, but give presidence to form variables if they have the same name, because they are likely to be intended to do an update or such.
    The code follows  Feel free to ignore the code for the URL and client variables if you wish as they don't directly affect how the form code works, I have tested with them commented out and I get the same result.  I provided all of it to give a more complete idea of what I have been toying with so far.  Please note that I don't normally use 'evaluate'.  There is probably a better way to go, but I don't know what it is.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <!--- Create a form so that we can post some form variables --->
    <form action="" method="post">
        First Name <input type="text" name="FirstName" />
        Last Name <input type="text" name="lastName" />
        <input type="submit" />
    </form>
    <!--- Set a variable to hold the list of URL variable names --->
    <cfset paramsurl = structKeyList(url)>
    <cfoutput>
    <br />
    URL variables:
    <!--- Loop through the list of url variables and then dynamically set a new variable to be equal to whatever is held by it --->
        <cfloop index="i" list="#paramsurl#">
            <cfset myDynVar = Evaluate(i)>
            <!--- Let's output the dynamically created variable as a test --->
            #i# = #myDynVar#<br />
        </cfloop>
    </cfoutput>
    <!--- If form fields exist --->
    <cfif isdefined("Form.FieldNames")>
        <cfoutput>
            <b>Field Names:</b> #Form.FieldNames#
            <p>
                <b>Field Values:</b><br>
                <cfloop INDEX="TheField" list="#Form.FieldNames#">
                    #TheField# = #Evaluate(TheField)#<br>
                    <cfset TheField = Evaluate(TheField)>
                </cfloop>
            </p>
            Lets try and output the two form fields without using the "form." notation<br>
            FirstName : #FirstName# <br />
            LastName : #LastName#
        </cfoutput>
    </cfif>
    <br />
    The client variables currently available are:<br />
    <cfoutput>
        <cfset nVarCounter = 1>
        <cfloop list="#GetClientVariablesList()#" index="whichClientVar">
            #whichClientVar# : #client[whichClientVar]#<br />
            <cfset whichClientVar = Evaluate(whichClientVar)>
        </cfloop>
    </cfoutput>

    Try this:
    <cfset structAppend( FORM, {
              'alpha' = 'bravo',
              'charlie' = 'delta',
              'echo' = 'foxtrot'
    }, true ) />
    <cfset structAppend( URL, {
              'alpha' = 'zulu',
              'lima' = 'mike',
              'echo' = 'papa'
    }, true ) />
    <!--- List the scopes in ascending order of importance. --->
    <cfdump var="#FORM#" label="FORM scope" />
    <cfdump var="#URL#" label="URL scope" />
    <cfset scopes = "url,form">
    <cfloop list="#scopes#" index="i">
              <cfloop list="#structKeyList( evaluate( i ) )#" index="j">
                        <cfset structInsert( VARIABLES, j, evaluate( i & '["' & j & '"]' ), true ) />
              </cfloop>
    </cfloop>
    <cfdump var="#VARIABLES#" abort="1" label="Combined Variables Scope" />
    What I did is insert 3 key/value pairs into the FORM and URL scope.  I then dumped the scopes to show their structure and values.  Then I defined a variable (scopes) which is a list of the least important scope to the most important.  After that, the loop I do simply goes through the SCOPES, their exisiting key/values and sets them into the VARIABLES scope.  Then, when it moves to the next scope of importance, it simply puts their value into the variables scope as well (overriding in the event it already exists), thus, the scopes defined later in the list override and replace.
    Then I just dump the VARIABLES scope (you'll notice it has the I, J and SCOPES variables in there that I used to create the loop.  If you perform this action in a function, simple make the I, J and SCOPES variables part of the LOCAL scope so they won't be in your VARIABLES scope.

  • Auto Create Filename from Form Fields

    Hello all,
    I am trying to find a way that I can save a form with a certain filename. I have the form create and all set to go. The user will be input some information into boxes. For instance I will have a Name box and a Date box. After the user is done filling out the form I would like the filename to be these two input boxes. Is there a way to do this? So basically I need to take these two form fields and have them be saved as the filename. Any help would be great. Thanks alot.

    You can export the data form the PDF using the FormDataIntegration service.
    Once you have the data in xml format, you can use a setValue and concatenate the value of the two nodes you're interested in.
    Jasmin

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Linked PDF form fields

    Is it possible to link two form fields together in a PDF form? I am creating a PDF form from an existing printed form, and some of the questions originally had two lines available for response. I want the user to still have two lines to use, but without having to tab between them. Can Acrobat 8 Professional "link" two fields together, so that input from one wraps into the other?

    I tried that, but I had some issues spacing the text field out correctly so it lined up with the lines already in the document. Also, the two lines do not match up on both sides... It looks kind of like this:
    Describe your current job responsibilities: ____________________

  • 2 Form Fields into one DB Entry

    I apologize in advance if this question has been asked and answered multiple times. I am new to this and extremely frustrated because I keep getting stuck.
    I am using Dreamweaver to create a website with Coldfusion as the server. I am using Quickbooks and QODBC to use the DB to integrate with CF.
    I have created a form with multiple fields all text entries. I have been able to get all the information to post into my database correctly. However my question is I want to create a multiple entry that would combine two form fields into one column in the database table. For instance I have First Name and Last Name as form fields when the user submits I want these to both enter into their respective columns in the table but also combine into one entry with format Last Name, First Name into a FULL NAME Column in the table. Is this possible if so how????? Thanks in advance.

    This is my current code::
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "customer">
      <cfquery datasource="QBs">  
        INSERT INTO Customer (Name, FirstName, LastName, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode)
    VALUES (<cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="cf_sql_clob" maxlength="41">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.firstname") AND #FORM.firstname# NEQ "">
    <cfqueryparam value="#FORM.firstname#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.firstname") AND #FORM.firstname# NEQ "">
    <cfqueryparam value="#FORM.firstname#" cfsqltype="cf_sql_clob" maxlength="41">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.streetaddress") AND #FORM.streetaddress# NEQ "">
    <cfqueryparam value="#FORM.streetaddress#" cfsqltype="cf_sql_clob" maxlength="41">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.city") AND #FORM.city# NEQ "">
    <cfqueryparam value="#FORM.city#" cfsqltype="cf_sql_clob" maxlength="31">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.state") AND #FORM.state# NEQ "">
    <cfqueryparam value="#FORM.state#" cfsqltype="cf_sql_clob" maxlength="21">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.zipcode") AND #FORM.zipcode# NEQ "">
    <cfqueryparam value="#FORM.zipcode#" cfsqltype="cf_sql_clob" maxlength="13">
    <cfelse>
    </cfif>
      </cfquery>
    <cfquery datasource="Access">
    INSERT INTO Logininfo (FirstName, LastName, Username, Password)
    VALUES (<cfif IsDefined("FORM.firstname") AND #FORM.firstname# NEQ "">
    <cfqueryparam value="#FORM.firstname#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.username") AND #FORM.username# NEQ "">
    <cfqueryparam value="#FORM.username#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.password") AND #FORM.password# NEQ "">
    <cfqueryparam value="#FORM.password#" cfsqltype="cf_sql_clob" maxlength="25">
    <cfelse>
    </cfif>
    </cfquery>
      <cflocation url="thankyou.cfm">
    </cfif>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1>Welcome to our sign up Page!</h1>
    <p>Please fill out the form below to register with out site and gain access to our members account page.</p>
    <form name="customer" action="<cfoutput>#CurrentPage#</cfoutput>" method="POST" id="customer"><table width="auto" border="1">
      <tr>
        <td><label for="firstname">
          <div align="right">First Name:</div>
          </label></td>
        <td><span id="sprytextfield1">
          <input type="text" name="firstname" id="firstname" accesskey="n" tabindex="05" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="lastname">
          <div align="right">Last Name:</div>
          </label></td>
        <td><span id="sprytextfield2">
          <input type="text" name="lastname" id="lastname" accesskey="n" tabindex="10" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="streetaddress">
          <div align="right">Street Address</div>
          </label></td>
        <td><span id="sprytextfield3">
          <input type="text" name="streetaddress" id="streetaddress" accesskey="n" tabindex="15" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="city">
          <div align="right">City:</div>
          </label></td>
        <td><span id="sprytextfield4">
          <input type="text" name="city" id="city" accesskey="n" tabindex="20" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="state">
          <div align="right">State:</div>
          </label></td>
        <td><span id="sprytextfield5">
          <input type="text" name="state" id="state" accesskey="n" tabindex="25" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="zipcode">
          <div align="right">Zipcode:</div>
          </label></td>
        <td><span id="sprytextfield6">
          <input type="text" name="zipcode" id="zipcode" accesskey="n" tabindex="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="username">
          <div align="right">Username:</div>
        </label></td>
        <td><span id="sprytextfield7">
          <input type="text" name="username" id="username" accesskey="n" tabindex="40" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td><label for="password">
          <div align="right">Password:</div>
        </label></td>
        <td><span id="sprypassword1">
          <input type="password" name="password" id="password" accesskey="n" tabindex="45" />
          <span class="passwordRequiredMsg">A value is required.</span></span></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input type="submit" name="submit" id="submit" value="Register" accesskey="n" tabindex="50" />
        </div></td>
        </tr>
    </table>
      <input type="hidden" name="MM_InsertRecord" value="customer" />
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
    var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1");
    </script>
    </body>
    </html>

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • How to Pass XML Data to a PDF Form and Load it into form fields

    I have xml Form data in a string. I would like open a programatically launch a pdf document and pass the xml data as one of the parameters and this xml data needs to load all the form fields.
    Any Idea as to how this can be done?

    I have the same requirement as Daminu, but from the research I have been doing it seems your reply is only partially true. 
    If your PDF is an XFA PDF form, with Reader Extensions enabled, and you want to keep the Reader Extensions functionality for a user to use after your programmatic manipulation, then neither of these tools will work (FDFToolkit or iText).
    Upon the user opening the file once it has been programmatically modified, the user will see the following:
    From what I have read, this requirement can only be fullfilled by use of LiveCycle Reader Extensions Server?  Please confirm?

Maybe you are looking for

  • Mainboard doesn't recognize my cpu cooler

    I have Vantec Aeroflow VA4-C7040 Socket-A but whenever i boot up my cpu it says cpu fan is not working even thouhg it is working great i plugged cpu fan correctly is ther anyone who could help me? ?(

  • Problem in updating field in databse

    Hi experts I have internal table i_lips I need to update a single field  in lips table on certain condtions I have tried this code but performance is too low .. Loop at i_lips. If  i_lips-kostl NE i_lips-ikostl. Update lips ser kostl = i_lips-ikostl 

  • Sales unit in Profitability analysis

    Hi All I have a sales quantity value field in my operating concern. But I am ambiguous about "sales unit" (Each/ KG). Is that a charecteristic?. And does it come standard or Do I have to create one?...Please throw some light on how this sales unit (e

  • Setting the column width

    I am creating a barchart using the following code:- <mx:series>                 <mx:ColumnSet id="myColumnSet" type="clustered"  >                     <mx:ColumnSeries id="mvSer" yField="mv" displayName="MV"  />                     <mx:ColumnSeries i

  • Macbook pro camera and bluetooth not available

    My 2010 macbook pro's camera and bluetooth has stopped working. Both worked fine before and nothing seems to fix the issue. Ive tried holding the power button, resetting pram and smc, and deleting bluetooth file. Everything that Ive read online has n