Validate 2 E-mail address fields in insert record form

Hello,
I have used the Insert Record Form Wizard to create a form, including using the Validate Form Server Behavior to validate many fields.
I can't figure out how to compare & validate 2 E-mail address fields.
After the form was created I opened the existing Validate Form Server Behavior - Advanced tab and built the condition {sub_email2} != {sub_email} but this had no affect on submitting the form.
The other thing I tried was creating a new Compare Transaction Field behavior with the same condition {sub_email2} != {sub_email}, this also seemed to have no affect.
I am just a beginner, so I admit to not really knowing what I'm doing, for me ADDT has been a great aid.
The other thing I noticed, when I tried both the items above, besides not affecting being able to submit the form with different E-mail addresses. The red asterisks indicating a required field, would disappear.
Here is the form http://www.oescahealthregistry.org/forms/pedigree_submission.php this version of the form does NOT include either of my attempts to validate the E-mail fields.
Thanks in advance for your help.
Dennis

Hi,
A compare statement should work fine. As an example I made small form that inserts name and email (2 fields) using Insert record wizard.
Name field is required, email field is required and checks that its a valid email structure ([email protected]). I then finish the wizard.
<input type="text" name="email" id="email" value="<?php echo KT_escapeAttribute($row_rsemail['email']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("email");?> <?php echo $tNGs->displayFieldError("email", "email"); ?>
I then add the extra field to the form that the 2nd email will be entered into, this one I called email2, I then copied the display hint and fielderror code from the first email and placed it behind the 2nd email box and changed the text to reflect email2. Which probably doesnt matter but I put it there anyway.
<input name="email2" type="text" id="email2" size="32" />
<?php echo $tNGs->displayFieldHint("email2");?> <?php echo $tNGs->displayFieldError("email2", "email2"); ?>
Now that I have both email fields in the form, I go to the developer tools under server behavior and select compare transactions fields under form validation.
I hit the + to add a field I then choose email for field, then == for condition, then {POST.email2} for compare to. I enter in an error message and hit ok.
Thats it the form is ready.
The first email field will check against email validation and the 2nd email will check against the first email.
I hope that helps.
Take note that the database actually only has 2 fields to enter data. Then 2nd email field is only for validation.
Message was edited by: Albert S.

Similar Messages

  • Hi, plz help me. i wanna store photos to sql database. so how to insert file field into insert record in dreamweaver cs3?

    I dont know how to insert file field into insert record in DW. i also want to know, insert dynamic table with image field. Plz help me anyone. Ty..

    ohh kk thank you bro. But How to store photos to server file. I wanna upload and display the photos in webpage. Can you send me the php code for this?

  • Exist RFC Function or Bapi for insert Records form a external program?

    i create a Ztable same as tell me here:
    http://abaplovers.blogspot.com/2008/02/creating-table-in-sap.html
    5 String Fileds 2 Date Fields 2 Numeric Fields
    my question is exist a RFC Function or Bapi for insert Records form a external program (Delphi/Visual Basic)?
    Any advices?
    Thanks.

    hi madhurao123 thanks for answer.
    But Why block the Thread?
    This question is no so basic, yet never learn, the forum must be open to these questions maybe open a forum somewhere basic but must be able to do these basic questions.
    IT Toolbox commented the same thing, but if not here or ITtoolbox or where else can ask basic questions?
    Advise me, thank you.

  • Allowing a zero as the first digit in an insert record form field

    I have a form that has an insert record behavior applied to
    it. I would like to be able to put a number into one of the form
    fields that begins with the letter zero (i.e. 010507). The trouble
    is that when I insert any number beginning with a zero, the first
    zero in the number gets dropped when it is entered into the
    database. This occured even when I tried changing the field type
    from number to text in Access.

    Oh, I failed to change the field type to "text" in the insert
    record dialogue box as well.

  • Request to Validate e-mail address Valid?

    I received a request via e-mail from NI Community to click on a link to validate my e-mail.  Given we have been cyber attacked, phished, etc. several times the link looked suspicious.  Is NI Community sending out requests for validation of e-mail addresses or is this another potential cyber attack attempt?  I can send a copy of the e-mail to NI if you can provide me with an e-mail address.
    Solved!
    Go to Solution.

    MetManager wrote:
    Is NI Community sending out requests for validation of e-mail addresses...?
    Yes - https://decibel.ni.com/content/groups/ni-community-help/blog/2013/02/11/e-mail-verification
    Try to take over the world!

  • Error with date field when inserting records into sql server from webdynpro

    Dear SDN's,
    I am trying to insert the records into sql server through my webDynpro program.
    I have created a date field in a dictionary with the datatype date.
    In my webdynpro program to insert the date i am following the below format.
    String dateString = "2006/12/10";
          java.util.Date d=new java.util.Date(dateString);
          java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
    when i try to execute it, it gives the following error.
    <b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column  >>REQDT<< (DATE)</b>
    Please correct me.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi,
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
    try like this.
    I Think in SQL the general format to take date as input like this.
    INSERT INTO X VALUES ('10/30/56')
    thaks,
    Lohi.

  • Trouble in mail address fields

    Prior to loading Yosemite: I could address an email by clicking in the "To:" or "Cc" or "Bcc" field, typing the first letter of the address to reveal a selection of recent recipients, scroll and click on the address. The address I selected would be entered in the field (the full address would be replaced by the recipient's name only), the cursor would remain in the same field, and I could add another recipient by typing the first letter again.
    After loading Yosemite: I click in a field and select the recipient, and the address appears in the field, but the address won't be entered, and it won't accept another address, unless I hit Tab. I have to Tab down to the next field for the first address to be entered, then manually click inside the previous field to select anther recipient. Anyone else experiencing this annoying glitch?

    After you select the address from the list, hit return to enter it.

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

  • Master-detail insert records form?

    Hi,
    I want to be able to build a master-detail insert form based on a BC4J, any ideas on the easiest way of doing this?
    I tried using the Data Web Beans from the JSP Element wizards, and found it possible to build a master-detail form for viewing data based on a BC4J application, but not inserting.
    I know it is probably possible to do this by coding your own Data Web Beans but is
    there any way of doing it with the Web Beans available?
    Thanks in advance.

    If you have a ViewLink in your AppModule for the master/detail tables, then the JSP application wizard automatically creates a master/detail page for this view link. You may want to use the generated page and modify it.

  • Moved site - pages with insert record forms not working

    Not sure what has happened here. I have copied a site from:
    www.goodsafariguide.com to:
    www.goodsafariguide.net
    The domains are on a shared reseller hosting account so are both pointing to the same database, but I noticed that pages with ADDT forms were not displaying at all.
    I created a new page just with a basic form, and it works on the .com domain:
    http://www.goodsafariguide.com/campkalahari/newform.php
    But not on the .net domain:
    http://www.goodsafariguide.net/campkalahari/newform.php
    The database connection looks OK - any idea what the issue here could be?
    Thanks.

    Narrowed it down to the error:
    PHP Fatal error:  Class 'tNG_dispatcher' not found in /home/gsgnet12/public_html/campkalahari/index.php on line 27
    I think I can see what all happened now. I originally got thrown because I uploaded the entire site, including a folder containing lots of hi-res photos, that were never uploaded originally. It looks as though files that weren't uploaded when the disk space ran out were still showing up in the file directory, but with a file size of 0k.
    So then when I was reuploading files, Dreamweaver wasn't actually uploading them because it seemed to think they were already uploaded, and I could see them showing up on the remote server, so it all looked OK.
    Anyway - it all looks OK now.

  • Insert record & mail

    Im trying to insert data captured from a registration form
    using Dreamweavers insert record scripts and need the data to be
    sent to a user as it has a activation link inside the mail using
    random numbers inserted into the database via a hidden form field.
    Ive put the PHP Mail after the "$Result1 =
    mysql_query($insertSQL, $sgu) or die(mysql_error());" line - but
    its not sending at all.
    Is there something i need to do or is there something im
    doing wrong? Ive tried two variations of the mail() function, one
    which i know for sure works as im already using it else where - and
    one i discovered as a solution to the problem im having when
    googling it.
    Any help would really be appreciated!
    Thanks,
    J

    All you do is locate the part of the insert script that
    handles the
    redirection to the success page and then copy (or write) your
    mail script
    there.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "SamDesign.be" <[email protected]> wrote in
    message
    news:et6t3a$r77$[email protected]..
    > Hi,
    > I have an insert record in my ASP page to my db Access,
    that's works fine.
    > I want to know if it is possible to send at the same
    time a mail to me
    > that
    > tell me there is a new record?
    > Can I put two form actions in the same form?
    >
    > <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    > id="frm_connaitre">
    > <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    > id="frm_connaitre">
    >
    > Response from bregent:
    > No. You should execute the form mail script after the
    insert record is
    > successful.
    >
    > My question:
    > Can someone explain to me how to execute the form mail
    script after the
    > insert
    > record?
    > Thanks in advanced
    > Sam
    >
    >

  • ASP insert record receive mail alert

    Hi,
    I have an insert record in my ASP page to my db Access,
    that's works fine.
    I want to know if it is possible to send at the same time a
    mail to me that
    tell me there is a new record?
    Can I put two form actions in the same form?
    <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    id="frm_connaitre">
    <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    id="frm_connaitre">
    Response from bregent:
    No. You should execute the form mail script after the insert
    record is
    successful.
    My question:
    Can someone explain to me how to execute the form mail script
    after the
    insert
    record?
    Thanks in advanced
    Sam

    All you do is locate the part of the insert script that
    handles the
    redirection to the success page and then copy (or write) your
    mail script
    there.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "SamDesign.be" <[email protected]> wrote in
    message
    news:et6t3a$r77$[email protected]..
    > Hi,
    > I have an insert record in my ASP page to my db Access,
    that's works fine.
    > I want to know if it is possible to send at the same
    time a mail to me
    > that
    > tell me there is a new record?
    > Can I put two form actions in the same form?
    >
    > <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    > id="frm_connaitre">
    > <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    > id="frm_connaitre">
    >
    > Response from bregent:
    > No. You should execute the form mail script after the
    insert record is
    > successful.
    >
    > My question:
    > Can someone explain to me how to execute the form mail
    script after the
    > insert
    > record?
    > Thanks in advanced
    > Sam
    >
    >

  • ASP insert record receive a mail alert

    Hi,
    I have an insert record in my ASP page to my db Access,
    that's works fine.
    I want to know if it is possible to send at the same time a
    mail to me that
    tell me there is a new record?
    Can I put two form actions in the same form?
    <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    id="frm_connaitre">
    <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    id="frm_connaitre">
    Thanks in advanced
    Sam

    Hi Bregent,
    Can you explain to me how to execute the form mail script
    after the insert
    record?
    Thanks in advanced
    Sam
    "bregent" <[email protected]> a écrit
    dans le message de news:
    et44g1$cqr$[email protected]..
    > No. You should execute the form mail script after the
    insert record is
    > successful.

  • Which e-mail sender address field is checked for restricted ePrint?

    If I restrict ePrint to only accept print requests from certain e-mail addresses: Which e-mail address field of the incoming e-mail is checked?
    a) E-mail message header From:?
    b) E-mail message header Sender:?
    c) SMTP MAIL FROM: (the sender address on the "SMTP envelope")?
    Thanks

    Hi Christob,
    If you are selecting Allow Senders Only under ePrintcenter.com.
    Then you have to put in the email address of the people who can send jobs to your printer via ePrint.
    Example:- If your friend wants to send an email to your printer and you have selected allow senders only.
     You will have to have his email address in there (the email address from which he is going to send an email) for him to send an ePrint Job to your printer.
    I hope this answers your question, if you have any question please let us know.
    Thanks
    Josh.C
    Click on the BLUE KUDOS button on the left to say "Thanks"
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Multiple Address fields in Pages Template

    I am working on creating a Pages template to record sales calls and I wanted to use the Address fields to insert two different companies into the document. When I try now, the same company is inserted into both company fields. Any ideas on this?

    Greetings,
    Sorry, but you cannot make the address section into one field, nor can you use Rich Text in Address Book.

Maybe you are looking for

  • Illustrator CS2 stopped launching

    My OS is 32 bit Windows Vista. My CPU is a Core 2 Duo. Adobe Illustrator CS2 used to work on my computer, but now it won't launch. It also won't reinstall or uninstall. I went to the Windows Control Panel for uninstalling programs. When I highlighted

  • How to add new database server instance in Sharepoint 2010?

    I have installed SQL server 2012 BI edition and I have been trying to add new SQL Server reporting services in Sharepoint 2010 central admin .But When I click "ok "after giving the new SQL server name in the SQL Server reporting service creating proc

  • Exception came when change stateful to stateless in ejb-jar.xml [Ejb 2.0]

    Hi, I am getting exception when i change the below entry from Stateful to Stateless for Transaction Type "Container".. ----------------------------------------------------------------Working Fine for single and multi users----------------------------

  • Reader 7 commenting turns off with save

    Acrobat 9 extended. Having set commenting enabled for the reader (v7 & 9), the recipient can create comments and save them. On reopening the document containing the comments the comments are there but the commenting rights have now disappeared and no

  • Using ichromy on ipad

    Has anyone tried ichromy app yet? How do you like it? Is ichromy safe on iPad? What I mean is it is safe to browse through ichromy versus safari?