Best Simple Dynamic Form Content Practice

I have an idea for a form which has simple content subforms that I'm trying to put togther and I'm hoping I can do this in ColdFusion but I'm not that good at it yet to know what the best practices are to getting this done.
I have a form with a general question followed by choices with radio buttons.  I'm looking for added form content to be displayed when one or more radio buttons are selected.  For example:
What service are you looking for?
  ()  Hair
  ()  Nails
  ()  Shave
  ()  Wax
Then if somone selected "Hair", under Hair more form content would be displayed.  For example:
What service are you looking for?
  ()  Hair
          What are you doing
               ()  getting ready for a wedding
               ()  going on a date
               Do you need a
               ()  cut
               ()  trim
               ()  Style
                    ()  Mohawk
                    ()  Mullet
  ()  Nails
  ()  Shave
  ()  Wax
Sort of like that with the added content adding to the form.  I'm collecting the data in a simple MS Access DB and working with CS4.  My server runs the latest version of CF.
Sounds simple enough but I'm not sure how to go about it and/or what the best practices are.  Any guideance?
Thank you for any help in advance!!!
-- Dax

Hmmm.  Actually, maybe using radio buttons is not such a good idea since I want subforms to populate for each selection and there can be more than one, even all, selected so maybe checkboxes.  But here's the catch.  What you're suggesting is that the user hit the submit button to return the sub form and that's not what I'm looking for.  I'm actually looking for the functionality that the form itself expands with a selection automatically.  In other words, user checks box, then the form expands with additional questions for their selection.  Then when the entire form is filled out as best it can, the user submits the data.  THAT's more like what I'm looking for.

Similar Messages

  • Looping Dynamic form content for SQL Insert

    I have a form that is created when a user selects the number
    of rows that they need ultimately deciding on how many records they
    will be inserting into an SQL database. After they fill out there
    information in the form and submit it I have a page that has the
    SQL query. I am attempting to loop the query the same number of
    rows that there are in the table. However I cannot get the query to
    run because of duplicate variables. For example in a simple form
    submission if I had a form text field called "Name" it would insert
    into the database as '#form.name#'. If the user selected 10 rows I
    would need to insert each row as '#form.name1#', '#form.name2#',
    etc. If my variable for the number of rows is "i" then my entire
    variable for the loop would be '#form.name#i##' which does not
    work. Hope it's not too confusing and any and all help would be
    appreciated.

    #form["contsant_part" & variable_part]#

  • Designer 8.2.1 - dynamic form - add button -

    Cannot get dynamic form to add additional lines as needed.
    Created simple dynamic form with "Add Item Button" designed to add an item line. Item line only has one text field. Used the "instanceManager.addInstance(1);" javascript line for the button.
    Form Properties have the following items:
    Preview type: interactive form
    Preview adobe xml form as: Dynamic xml form
    The Hierarchy pallette shows:
    form1
    (Master Pages)
    page1
    (untitled Content Area)
    rootSubForm
    Button1
    detail (subform)
    TextField1
    Referenced Objects
    rootSubForm Object Items:
    Subform:
    Content: Flowed
    Flow Direction: Top to Bottom
    Allow Page Breaks within Content
    Presence: Visible
    Pagination:
    Place: Following Previous
    After: Continue Filling Parent
    Binding:
    Default Binding: Normal
    Button1
    JavaScript language:
    form1.rootSubForm.Button1::click - (JavaScript, client)
    _detail.addInstance(1);
    detail:
    Subform:
    Content: Positioned
    Allow Page Breaks within Content - Checked
    Presence: Visible
    Pagination:
    Place: Following Previous
    After: Continue Filling Parent
    TextField1:
    Field:
    Type Text Field
    Allow Page Breaks within Content - Checked
    Field Format: Plain Text Only
    Binding:
    Default Binding - Normal
    It simply doesn't work. When I click the Button, it does not add an additional line.
    There was some trouble with the initial installation of Acrobat 9 Pro Extended, requiring assistance from technical support. I don't know if I am having continuing installation/operations problems or if it is programmer error.
    I have been told by Adobe Technical Support that they "don't"/"won't" support javascript issues, so I am left on my own to determine the issue. Any help would be appreciated.

    I should also mention that I can call up the sample forms provided by the program and those samples work, but as I try to create a form from the beginning, it does not work.

  • Dynamic Form - Barcode on master page, only contents on specific page to be populated on barcode

    We have a dynamic form that grows as required. We have one barcode on the master page. As form grows to next page only the contents on that page (ie page 2) must be on the barcode on page 2 and page 1 content only on page 1. But if the form goes back to normal then the contents must not be on the barcode anymore.
    Could anyone assist on this problem please?

    Hi Brad ,
    For your issue, you can view the Upgrade Status page in Site Settings to verify that upgrade has succeeded for a site collection.
    To view upgrade status in Site Settings 
    1.Verify that the user account that performs this procedure is a site collection administrator.
    2.On the Site Settings page for the site collection, in the Site Collection Administration section, click Site collection upgrade.
    3.On the Site Collection Upgrade page, click Review Site Collection Upgrade Status.
    4.The Upgrade Status page for the site collection is displayed.
    For more information, see
    Manage site collection upgrades to SharePoint 2013
    Also you can  go to _layouts/15/reghost.aspx (Site Settings -> Site Actions -> Reset to site definition) and reset the master page gallery to site definition version.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Populating dynamic PDF Form Content

    I have a livecycle form I designed that I need to populate with data coming from ColdFusion. Easy enough except for the dynamic areas of my form. I have numerous subforms in my PDF where a user can add extra fields (or rows in a table) and then submit the form. The problem is that I don't know how to access the fields within the subform when there is more than one to populate them. Can't post a dump of the submitted form, but it flows like this:
    form1
         page_1_subform
              subform
                   subform
                        subform
                             array of text fields
    I can process this with no problems on the CF side, but when trying to populate the form I'm having problems. I have javascript in the form that will add enough instances of the fields, but it doesn't populate them.
    Any thoughts???

    Take a look at this blog entry how you can use xml to populate dynamic forms.
    http://www.supportobjective.com/blog/index.cfm/2010/5/27/ColdFusion-and-multirow-forms-ins ide-Dynamic-PDFs
    You might find a way using this approach.

  • Posted Form contents Problem

    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V‚É?¬Œ÷‚µ‚Ü‚µ‚½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>

    The jsp directive does nothing to help the INPUT data handling. On the other hand, this is a html spec problem, not a weblogic one. RFC2070 has some recommendation on how to do i18n with HTML/HTTP, but neither Netscape nor IE supports it.
    --Ye
    Joseph Weinstein <[email protected]> wrote:
    Hi,
    The ideal approach is to employ the JSP directive for encoding.
    This is documented in the JSP spec. Also, if all your JSPs
    require the same encoding, there is an argument to our JSP
    servlet, to tell it what default charset encoding to use.
    Joe
    Kirk Everett wrote:
    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V&#8218;É?¬&#338;÷&#8218;µ&#8218;Ü&#8218;µ&#8218;½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for
    people who want to work with Java and E-Commerce infrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application Server
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a Component Architecture
    http://www.bea.com/press/awards_weblogic.html

  • Importing data into dynamic form

    I have not yet had a chance to work with LiveCycle, and I have been given a project which I need to determine if LiveCycle would be the correct solution. The client originally wanted this to be a Microsoft Word form, but I doubt that I can meet the requirements using Word.
    I need to design a form which a user can enter multiple line items either manually, or by importing existing data. The data itself would be about 40-50 distinct pieces of data, in a block of  several sections and multiple lines (i.e Name, Address block, Phone/fax/email, contact and comment section, etc) and would be a combination of text fields and checkboxes. There would be 2-3 of these blocks per page (with a static header/footer), plus a cover page with data fields for the organization using the form.
    I know that I could create this type of dynamic form in LiveCycle to be entered manually, but I don’t know what options, if any, I would have in giving the user the ability to import existing data from an unknown source (could be a text file, a local or hosted database, excel, etc.).
    My questions are about the feasibility of LiveCycle for this project:
    Can data be imported from a data source the user chooses? Are there any limitations to what kinds of data sources can be used? Would I need to program a custom function to allow the user to match the proper fields for the import, or is there a built in function to handle this?
    Would there be any platform/application limitations? Can the form be used with Reader on a desktop computer (Mac or PC), or on a tablet (and if so, is a specific app necessary instead of the default app)?
    Are there any other foreseeable issues I may have to deal with?

    Thanks for the info. A few followup questions if you don't mind:
    1. Needs to configure an ODBC-connection on every system it is used.
    This form will be sent to our client, and they will send it to their customers. Can the connection setup be scripted, or is it simple enough that a generic set of instruction can be given to the end user to allow them to setup the connection and map their fields to the form's content easily?
    2. Requires Acrobat or a reader-enabled from to use in Reader. Data is automatically populated in the form fields. Only xml files for import allowed. Allows to use XSLT to format imported data.
    I doubt that the end user would have their data in a compatible XML format, so this option may not be necessary. Is Reader-enabling a form in LiveCycle comparable to the process in Acrobat? I have heard LiveCycle Enterprise is very expensive and required for certain functions, does this apply here? Does this require a specific server setup for these forms?
    3. Difficult scripting to update field values automatically. Works in Reader and Acrobat.
    The data would not need to be updated automatically, just pull current data into the form. This would be a one-way operation, there would be no need to update the data source from values within the form. I would still need to give the user a way to map their fields to the form.
    Are you aware of any tutorials or example files that would help give me a start? I had a brief look at the LiveCycle Designer ES2 Scripting Reference, but I"m not sure which objects to look into.
    None of these methods will work on mobile devices as there is currently no support of XFA in Reader Mobile.
    Good to know. The same is probably true if I were to create the form in Word/Office.

  • Create a simple mail form

    Hi,
    I want to create a simple mail form using portal. The form must not use the HTML "mailto:", cause this requires a mail client to be installed at the customers computer. So I want to use the UTL_SMTP package. I managed to send mails with this package, but the problem is: how do I build my form with lets say 3 fields, so that i can pass the entered values to the SendMail-Funtion? I tried to create a form based on a table, then add new items and delete the table-based-items, but that doesnt work. I cant access the not table-based-items and found the reasons for that in the forums here. Then I tried to do it with a dynamic page, but I didnt succeed in calling my send-mail-function from the dynamic page. How can I do it?
    Bye,
    Pascal

    This question is best suited to the Oracle9iAS Portal Applications forum. But, have you tried a form based on a procedure?

  • How can i send an auto reply with form content to sender?

    Hai!
    I'm new to website building, but i already came a long way
    i made a form and i like to send a auto reply with the form content (if that isnt too difficult) to the person who filled it in.
    The form i made is in PHP (coding i copied partly from someone from the internet .)
    You can see the from at: http://vinddit.nl/vindditnu%20php%20version.php
    My PHP coding so far
    <?php
    // Set email variables
    $email_to = '[email protected]';
    $email_subject = 'Aanvraag - VINDDIT NU!';
    // Set required fields
    $required_fields = array('Voornaam','email','Achternaam','Plaats');
    // set error messages
    $error_messages = array(
              'Voornaam' => 'Vul hier uw voornaam in a.u.b.',
              'email' => 'Vul hier een geldig email adres in a.u.b.',
              'Achternaam' => 'Vul hier uw achternaam in a.u.b.',
              'Plaats' => 'Vul hier uw woonplaats in a.u.b.'
    // Set form status
    $form_complete = FALSE;
    // configure validation array
    $validation = array();
    // check form submittal
    if(!empty($_POST)) {
              // Sanitise POST array
              foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
              // Loop into required fields and make sure they match our needs
              foreach($required_fields as $field) {
                        // the field has been submitted?
                        if(!array_key_exists($field, $_POST)) array_push($validation, $field);
                        // check there is information in the field?
                        if($_POST[$field] == '') array_push($validation, $field);
                        // validate the email address supplied
                        if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
              // basic validation result
              if(count($validation) == 0) {
                        // Prepare our content string
                        $email_content = 'New Website Comment: ' . "\n\n";
                        // simple email content
                        foreach($_POST as $key => $value) {
                                  if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
                        // if validation passed ok then send the email
                        mail($email_to, $email_subject, $email_content);
                        // Update form switch
                        $form_complete = TRUE;
    function validate_email_address($email = FALSE) {
              return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
    function remove_email_injection($field = FALSE) {
       return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
              <title>Aanvraag formulier</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <link href="style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
        <script type="text/javascript" src="validation/validation.js"></script>
              <script type="text/javascript">
    var nameError = '<?php echo $error_messages['fullname']; ?>';
                        var emailError = '<?php echo $error_messages['email']; ?>';
                        var commentError = '<?php echo $error_messages['comment']; ?>';
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        </script>
    <style type="text/css">
    </style>
    </head>
    <body onload="MM_preloadImages('icons/x.png')">
    <p> </p>
    <p>
      <?php if($form_complete === FALSE): ?>
    </p>
        <form action="vindditnu php version.php" method="post" enctype="application/x-www-form-urlencoded" name="Form"  id="commentsform">
        <h1><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></h1>
        <h1>Wat zoekt u?:</h1>
                     <table width="690" border="0">
            <tr>
              <td>In welke categorie zoekt u?*</td>
              <td colspan="3"><select name="Ophalen_verzenden" id="Ophalen_verzenden">
                <option selected="selected">Meubels </option>
                <option>Witgoed </option>
                <option>Woon accesoires </option>
                <option>Kleding </option>
                <option>Schoenen </option>
                <option>Mode accesoires </option>
                <option>Speelgoed </option>
                <option>Boeken, tijdschriften, papierwaren </option>
                <option>Overig </option>
              </select></td>
            </tr>
            <tr>
              <td>Kleur:* </td>
              <td colspan="3"><select name="kleuren" id="kleuren">
                <option>Blauw</option>
                <option>Rood</option>
                <option>WIt</option>
                <option>Zwart</option>
                <option>Beige</option>
                <option>Bruin</option>
                <option>Geel</option>
                <option>Oranje</option>
                <option>Rood</option>
                <option>Metallic (Bijv. Zilver/Goud/Brons/Koper</option>
                <option>Meerkleurig</option>
                <option selected="selected">Overig/ N.v.t</option>
              </select></td>
            </tr>
            <tr>
              <td>Merk: </td>
              <td colspan="3"><input name="Merk" type="text" id="Merk5" value="<?php echo isset($_POST['Merk'])? $_POST['Merk'] : ''; ?>" />
                <?php if(in_array('Merk', $validation)): ?>
                <span class="error"><?php echo $error_messages['Merk']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Type/Model:</td>
              <td colspan="3"><input type="text" name="type" id="type" value="<?php echo isset($_POST['type'])? $_POST['type'] : ''; ?>" />
                <?php if(in_array('type', $validation)): ?>
                <span class="error"><?php echo $error_messages['type']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Materiaal: </td>
              <td colspan="3"><input name="Materiaal" type="text" id="Materiaal" value="<?php echo isset($_POST['Materiaal'])? $_POST['Materiaal'] : ''; ?>" />
                <?php if(in_array('Materiaal', $validation)): ?>
                <span class="error"><?php echo $error_messages['Materiaal']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Maat: </td>
              <td colspan="3"><input type="text" name="Maat" id="Maat" value="<?php echo isset($_POST['Maat'])? $_POST['Maat'] : ''; ?>" />
                <?php if(in_array('Maat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Maat']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Conditie*:</td>
              <td colspan="3"><select name="conditie" id="conditie" >
                <option>Zo goed als nieuw</option>
                <option>Nieuw</option>
                <option>Bebruikt</option>
                <option selected="selected">Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Ophalen/Verzenden:*</td>
              <td colspan="3"><select name="ophalen" id="ophalen">
                <option>Ophalen</option>
                <option>Verzenden</option>
                <option>N.v.t</option>
                <option>Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Prijs Min:</td>
              <td><input name="prijsmin" type="text" id="prijsmin" size="10" value="<?php echo isset($_POST['prijsmin'])? $_POST['prijsmin'] : ''; ?>" />
                <?php if(in_array('prijsmin', $validation)): ?>
                <span class="error"><?php echo $error_messages['prijsmin']; ?></span>
                <?php endif; ?></td>
              <td>Prijs Max:</td>
              <td><input name="Prijs" type="text" id="Prijs" size="10" value="<?php echo isset($_POST['Prijs'])? $_POST['Prijs'] : ''; ?>" />
                <?php if(in_array('Prijs', $validation)): ?>
                <span class="error"><?php echo $error_messages['Prijs']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <h1>Opmerkingen:</h1>
          <table width="690" border="0">
            <tr>
              <td height="25">Opmerkingen:</td>
              <td rowspan="2"><textarea name="Opmerkingen" cols="67" rows="10" id="Opmerkingen"><?php echo isset($_POST['Opmerkingen'])? $_POST['Opmerkingen'] : ''; ?></textarea>
                <?php if(in_array('Opmerkingen', $validation)): ?>
                <span class="error"><?php echo $error_messages['Opmerkingen']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td height="78"> </td>
            </tr>
          </table>
          <h1>Uw Gegevens:</h1>
          <table width="690" border="0">
            <tr>
              <td>Voornaam/Voorletters*:</td>
              <td><input type="text" name="Voornaam" id="Voornaam" class='invul' value="<?php echo isset($_POST['Voornaam'])? $_POST['Voornaam'] : ''; ?>" />
                <?php if(in_array('Voornaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Voornaam']; ?></span>
                <?php endif; ?></td>
              <td>Achternaam:* </td>
              <td><input type="text" name="Achternaam" id="Achternaam" class='invul' value="<?php echo isset($_POST['Achternaam'])? $_POST['Achternaam'] : ''; ?>" />
                <?php if(in_array('Achternaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Achternaam']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Straatnaam:</td>
              <td><input type="text" name="Straat" id="Straat" class='invul' value="<?php echo isset($_POST['Straat'])? $_POST['Straat'] : ''; ?>" />
                <?php if(in_array('Straat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Straat']; ?></span>
                <?php endif; ?></td>
              <td>Huisnummer:</td>
              <td><input name="Huisnummer" type="text" id="Huisnummer" class='invul' size="10" value="<?php echo isset($_POST['Huisnummer'])? $_POST['Huisnummer'] : ''; ?>" />
                <?php if(in_array('Huisnummer', $validation)): ?>
                <span class="error"><?php echo $error_messages['Huisnummer']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Postcode:</td>
              <td><input type="text" name="Postcode" id="Postcode" class='invul' value="<?php echo isset($_POST['Postcode'])? $_POST['Postcode'] : ''; ?>" />
                <?php if(in_array('Postcode', $validation)): ?>
                <span class="error"><?php echo $error_messages['Postcode']; ?></span>
                <?php endif; ?></td>
              <td>Plaats:* </td>
              <td><input type="text" name="Plaats" id="Plaats" class='invul' value="<?php echo isset($_POST['Plaats'])? $_POST['Plaats'] : ''; ?>" />
                <?php if(in_array('Plaats', $validation)): ?>
                <span class="error"><?php echo $error_messages['Plaats']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Email Adres:*</td>
              <td colspan="3"><input type="text" name="email" id="email" class='invul' value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" />
                <?php if(in_array('email', $validation)): ?>
                <span class="error"><?php echo $error_messages['email']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Telefoonnummer:</td>
              <td colspan="3"><input name="Telefoon" type="text" id="Telefoon" class='invul' value="<?php echo isset($_POST['Telefoon'])? $_POST['Telefoon'] : ''; ?>" />
                <?php if(in_array('Telefoon', $validation)): ?>
                <span class="error"><?php echo $error_messages['Telefoon']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <p>
            <label for="Straat"></label>
            <label for="Huisnummer"><br />
            </label>
            <input type="submit" name="Submit" id="Submit" value="Verstuur" />
                   <input type="reset" name="Reset" id="Reset" value="Wissen" />
          </p>
        </form>
        <?php else: ?>
        <div class="bedankt">
          <p>Bedankt voor uw aanvraag!</p>
          <p>Wij zullen uw aanvraag zo spoedig mogelijk behandelen. Meestal duurt dit 2 a 3 werkdagen.</p>
          <p><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></p>
    </div>
        <p>
          <script type='text/javascript'>
    setTimeout("ourRedirect()", 5000)
    function ourRedirect() {
          </script>
          <?php endif; ?>
    </body>
    </html>
    and .JS
    window.addEvent('domready', function() {
              // Get the form
              var form = $('comments_form');
              //  if the form is found...
              if (form) {
                        // obtain error fields
                        var name = $('fullname');
                        var email = $('email');
                        var comment = $('comment');
                        // Set the default status
                        var isValid = true;
                        // input error function for the error messages
                        var addError = function (field, msg) {
                                  field.addClass('error'); // Add error class to field
                                  var error = field.getParent().getElement('span') || new Element('span', {'class': 'error'}); // add error message if not already placed
                                  error.set('text', msg); // error text msg
                                  error.inject(field, 'after'); // Insert error message after field
      // detach error function used to delete any error messages and remove the error class
                        var removeError = function (field) {
                                  field.removeClass('error'); // Remove error class from form fields
                                  var error = field.getParent().getElement('span'); // find any existing error messages
      // destroy if error message
                                  if (error) {
                                            error.destroy();
    //  insert submit form event
                        form.addEvent('submit', function (e) {
                                  // Test name length
                                  if (name.get('value').length === 0) {
                                            isValid = false;
                                            addError(name, nameError);
                                  } else {
                                            isValid = true;
                                            removeError(name);
    // check email length
                                  if (email.get('value').length === 0) {
                                            isValid = false;
                                            addError(email, emailError);
                                  // check email validity
                                  } else if (!email.get('value').test(/^([a-zA-Z0-9\+_\-]+)(\.[a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.)+ [a-zA-Z]{2,6}$/)) {
                                            isValid = false;
                                            addError(email, emailError);
                                  } else {
                                            isValid = true;
                                            removeError(email);
                    // check comment length
                                  if (comment.get('value').length === 0) {
                                            isValid = false;
                                            addError(comment, commentError);
                                  } else {
                                            isValid = true;
                                            removeError(comment);
                                  // If form invalid then stop event happening
                                  if (!isValid) {
                                            e.stop();

    lisavs12686 wrote:
    Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
    not really nessecary but whould be a nice  jextra
    You can but you would need to send it as an html email which is much more complicated.
    What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
    $reply = $_POST['email'];
    $from = '[email protected]';
    $replysubject = "Auto-Reply: Website Name";
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= "From: $from\r\nReply-to: $reply";
    $replymessage = '
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Comments from Website</title>
    </head>
    <body>
    <table>
    <tr>
    <td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
    </td>
    </tr>
    </table>
    </body>
    </html>';
    mail($reply, $replysubject, $replymessage, $headers);

  • Page Number Disappesrs when click on Reset button in Dynamic Form

    Dear all,
    In dynamic forms I have taken Page n of m field outside the content area in master pages.I have added the reset button in body pages of the form.In the pdf When I click on Reset button the page nos are disappearing along with the other data.
    I want the page no should not disappear.How can I get rid of this problem. If any body can please help me.
    Thanks a bunch in advance
    Regards
    Rakesh

    Firefox checks on the server if the file has been modified if you use the back button.<br />
    If the page was requested by sending post data to the server then Firefox sends that post data and asks for confirmation.<br />
    You can try to use the tab history of the Back button skip sites that require sending post data.
    You can also try if it works if you set to never check the server by setting the browser.cache.check_doc_frequency pref to 2.
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Saving dynamic forms in Acrobat Reader

    How do you create PDF dynamic forms and save them so that they can be completed and saved  in Acrobat Reader.

    Thank you very much for your help. As I said this was my first attempt with Livecyle. I had sold the concept of dynamic forms to a collegue and promised to do a dynamic form one for him before going on a winter holiday. Completed the form in a hurry only to find I could not enable users with Acrobat Reader. My worry was that I would not be able to save dynamic forms without additional software, but your helpful comments confirm its something I have done that is causing my issue.
    I think Livecycle is a great product, but fragmented information is available for individual users. Bought the Book PDF Forms Using LifeCycle Designer (Acrobat 9) and joined PDFscripting web service which are both good in there own way. I get confused with Adobe's help, not being IT techie and the difference of Enterprise Editions of LifeCycle on how to get the best out of LiveCycle.
    Many thanks George for you assistance, I will retry when I return from my winter break.

  • Broken Delete button in Dynamic Form. For the ADDT gurus!

    I have a feeling i may be at Günter's mercy on this one. Hope you have time to look at this; of course for any and all, the same applies!
    I have a dynamic list which i spent quite a lot of time with - rearranging elements within the ADDT generated KT_tng table. Just moving one recordset piece can take up to 30 seconds, so it takes QUITE a while with a lot of data to move.
    Anyways, i seem to have "broken" the delete button in mine. I hope someone can help me fix it, i really dont have time to redo all the changes i did to the dynamic list layout. (i did test as i went to make sure i didnt break it, but guess i just missed a piece..) I changed mainly the location of things, and CSS.
    I have an older version where the delete button works. I have compared but cannot find the answer. Both versions do everything else, live, with the database & their respective dynamic forms.
    I have all 4 files live, and unprotected, for now, and txt versions of all four. If you need to test anything with the live pages, its ok, most of the data is dummy data.
    Ive been saturated in ADDT dynamic lists, and dont have a background of hand coder, but am learning a lot, quick. so i have tried hard to understand this exact issue i created - im not looking for others to do my work. just my little disclaimer :)
    /* TEXT VERSIONS */
    /*Broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.txt
    http://www.aquatictrainingservice.com/admin/courses_form.txt
    /*Working delete button */
    http://www.aquatictrainingservice.com/admin/courses_list2_.txt
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.txt
    /*LIVE PHP VERSIONS*/
    /*broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.php
    http://www.aquatictrainingservice.com/admin/courses_form.php
    /*working delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list2_.php
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.php
    best
    ben

    Include the following javascript code under the onClick event of the delete button.
    It works for me.
    onClick:
    var x=window.confirm('Are you sure ?')
    if (x)
    do_event(this.form,this.name,1,'ON_CLICK','');
    else
    return false

  • How to print a PDF form content when i have the content

    Hi SAPGURUS,
    I have an urgent requirement.
    I have the content of a PDF form in raw format and it is saved in some repositry .Now How can i create a spool request and print the form.
    I can use the function module FP_JOB_OPEN and then gat the dynamic function module name and then close it by FP_JOB_CLOSE .
    But as i already have the PDF form content i need not create it again by calling the dynamic function module.And i can't do so because both applications are altogether separate from each other that is creation of the PDF form and printing it.
    Could you help me in guiding the way to solve this problem.
    Thanks in advance
    Sanjeev

    Hi Sanjeev,
    I have currently the same issue, please have you solved it?
    Thank you
    Tomas

  • Is there ANY way to keep track of changes or versions in a dynamic form, viewed in Reader

    I need to provide a measure of content control.
    I looked at acrobat.com for help.  There is a rather convoluted method and I don't know if I can get my company to go along with it.
    I have a dynamic form and it has to be dynamic, so I cannot change it to static to give it Comment/Markup ability - out of the question.
    Does anyone know of ANY way to keep track of changes or comments or anything? And if you know, please be as specific as possible.
    Thanks!

    No replies, so I assume that there isn't any way to do this at present. Do people agree that this would be a really useful feature?

Maybe you are looking for

  • Report rdf with size 8mb taking more time to open

    Hello All, I have a rdf ( reports 6i) report with size 8.5mb taking more time to open and more time to access each field. Please let me know how do i solve this issue. Please do the needful. Thanks.

  • Condition to be applied once per order and per Invoice - best ideas please

    Hi My client has a requirement for a surcharge to be applied once per order. I.e. to be applied once to the first Invoice resulting from an order. This is a set amount for every order. eg. $10. Additionally, if rescheduling determines another item to

  • Moving exisiting iview to new page in MSS buisness package

    Hello there, We are using the MSS bp for ECC 6.0. I want to change location of existing iview from the  general information page to a differ existing page. I want to use FPM to support events between this iview to the search employee iview. Is it pos

  • More Guide Data Issues

    Channel 319 blackbelt tv has a "to be announced" message on the guide for the next two weeks where you can not set up anything to tape and it is a channel that has martial arts movies plus fights on there for people to watch. 1509 tele el salvador is

  • Can't update because need to transfer purchases

    I am trying to update to 7.0.3 but a message comes up stating that I need to transfer purchases from my iPhone to my iTunes library, but I have but the message keeps appearing.  How do I make sure my purchases are transferred and then get rid of the