Re: PHP Form - Required Fields

Change this section of code:
if(!count($Errors)) {
$SendTo = "[email protected]";
$Subject = "New Contact Form";
$FromString = "From: ".$_POST['eaddress']."\r\n";
$Indhold = "Dave, Someone filled out the contact form on the
web site.
Here is the information:\r\n\r\n";
$Indhold .= "name: ".$_POST['name']."\r\n";
$Indhold .= "e-mail: ".$_POST['eaddress']."\r\n";
$Indhold .= "phone: ".$_POST['telefon_nr']."\r\n";
$Indhold .= "subject: ".$_POST['subject']."\r\n\r\n";
$Indhold .=
"comment:\r\n".preg_replace("(\r\n|\r|\n)","\r\n",$_POST['comment'])."\r\n";
$MailSuccess = mail($SendTo,$Subject,$Indhold,$FromString);
header("Location: thankyou2.php");
exit;***************************
To this:
if(!count($Errors)) {
$SendTo = "[email protected]";
$Subject = "New Contact Form";
$FromString = "From: ".$_POST['eaddress']."\r\n";
$Indhold = "Dave, Someone filled out the contact form on the
web site.
Here is the information:\r\n\r\n";
$Indhold .= "name: ".$_POST['name']."\r\n";
$Indhold .= "e-mail: ".$_POST['eaddress']."\r\n";
$Indhold .= "phone: ".$_POST['telefon_nr']."\r\n";
$Indhold .= "subject: ".$_POST['subject']."\r\n\r\n";
$Indhold .=
"comment:\r\n".preg_replace("(\r\n|\r|\n)","\r\n",$_POST['comment'])."\r\n";
$name = [submitted name from form field];
$MailSuccess = mail($SendTo,$Subject,$Indhold,$FromString);
header('Location:thankyoupage.php?name='.$_POST['name']);
exit;***************************
That part of the code that I pasted above it creating those
strings ONLY IF
there are no errors, so you can just add in seb's code there.
HTH, take care.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================

Ah - see now I put the formatting how I'd *like* the user to
input it.
Because I work with anyone in any loaction, naturally the
format would be
different.
For my contact.php page - the "phone" field isn't a
requirement, but for my
quote.php it is a requirement and I just validate it just to
make sure there
is SOMETHING in the text field. Not the best way, but I trust
a true future
client will provide their phone number.
Take care Dave, glad I could be of help.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Dave Anderson" <[email protected]> wrote in
message
news:e68vpc$da9$[email protected]..
> Shane H wrote:
>> Dave -
>>
>> I've tweaked your code and got it working for you.
Here are the pages in
>> text:
>>
>> Source code (contact.php):
>>
http://www.avenuedesigners.com/tests/dave_source.html
>>
>> Source code (thankyoupage.php):
>>
http://www.avenuedesigners.com/tests/dave_thankyou_source.html
>>
>> HTH, take care.
>>
>
>
> Shane,
>
> Many thanks! I took a look at what you did to compare to
what I had. I
> couldn't tell what was different!? Anyhow, it works
GREAT.
>
> I noticed on your site that you have a specific format
for the phone
> number. Would it look something like this?
>
> if(!trim($_POST['phone'])) $Errors[] = "Phone";
>
> change to this:
>
>
if(!preg_match("/[0-9]{2,4}+-[0-9]{2,4}+-[0-9]{3,5}/",$_POST['telefon_nr']))
> $Errors[] = "The phone number is typed wrong. (check the
format)";
>
>
> I tried it and it doesn't seem to care *what* I put in
(alphanumeric). I'm
> sure my code is bad, but I don't know what.
>
> Thanks for your help Shane!
>
> Dave

Similar Messages

  • PHP forms & required fields

    i'm creating an inquiry form for a client hosting w/godaddy.
    Site is in DW using godaddy's php form mail script. script
    works fine for sending formmail.
    Is it possible to validate form fields in php? the customer
    wants to have the first name, email address, etc. being a required
    field or the form will not submit. godaddy support is clueless,
    they e-mailed a kb article on changing the form e-mail address as a
    solution.
    can anyone provide insight? thanx in advance!

    Sure it is. It's even possible to do it in javascript before
    the form gets
    submitted.
    Which DW are you using?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "donna_d" <[email protected]> wrote in
    message
    news:fn8468$r4n$[email protected]..
    > i'm creating an inquiry form for a client hosting
    w/godaddy.
    > Site is in DW using godaddy's php form mail script.
    script works fine for
    > sending formmail.
    >
    > Is it possible to validate form fields in php? the
    customer wants to have
    > the
    > first name, email address, etc. being a required field
    or the form will
    > not
    > submit. godaddy support is clueless, they e-mailed a kb
    article on
    > changing
    > the form e-mail address as a solution.
    >
    > can anyone provide insight? thanx in advance!
    >

  • PHP Form - Required Fields

    I've got my form working great thanks to Joe and David (and
    others) in
    this group.
    I want to take it a step further by requiring three fields to
    be filled
    out. So I found this code to use in my thankyou2.php page:
    if (!($frmName && $frmemail && $frmphone))
    {echo "You must complete the
    form to send it"; } else {
    I *thought* that if I used it prior to the code that
    processes the rest
    of the page, and sends the admin e-mail, all would be swell.
    However,
    all I get is a blank page.
    I'm almost thinking now that maybe the code needs to go on my
    contact.php page rather than the thankyou.php page? That way,
    the error
    message could appear right on the contact page itself?
    I'm fairly new to this PHP stuff, so go easy
    www.paramount-const.com/contact.txt
    www.paramount-const.com/thankyou2.txt
    Dave

    sorry:
    header('Location:thankyoupage.php'.?name=$_POST['name']);
    should read:
    header('Location:thankyoupage.php?name='.$_POST['name']);
    i misplaced the dot and quote...
    (_seb_) wrote:
    > Dave Anderson wrote:
    >
    >> Shane H wrote:
    >>
    >>>
    http://www.geekministry.com/blog_article.php?id=40
    >>>
    >>> Kim provides an easy way to validate the form
    and also a field for
    >>> stopping spam (I use it on my website, works
    very well!) - all in PHP.
    >>>
    >>
    >>
    >> Shane, good catch! Here method is so simple...
    >>
    >> I installed it, but have a few PHP questions.
    >>
    >> Source:
    >> www.paramount-const.com/html/contact2.txt
    >> www.paramount-const.com/html/thankyou2.txt
    >>
    >> Live form:
    >>
    http://www.paramount-const.com/html/contact.php
    >>
    >> 1) Biggest issue:
    >> If the form is incorrectly filled out, the error
    messages are
    >> displayed at the top of the page. I'm not clever
    enough to figure out
    >> how to display the error message in the fieldset. I
    tried putting the
    >> php block of code in the fieldset, but it doesn't
    seem to matter.
    >> Maybe I can position it with CSS? or is there a
    different way?
    >>
    >> 2) Nice to do but not imperative:
    >> If the form is filled out properly, it redirects to
    my thankyou page.
    >> I would like to personalize the thank you if
    possible. I know there's
    >> a way to customize that page with a name variable,
    but I can't get it
    >> to work. I think what's happening is that I need to
    somehow pass a
    >> variable from the contact page to the thankyou page.
    I have this at
    >> the moment in my thankyou page:
    >>
    >> <?php echo 'Thank you,
    '.htmlentities($_POST['name']).'.'; ?>
    >>
    >> Thanks.
    >>
    >> Dave
    >
    >
    > when you click on the submit button of the form,
    basically the page
    > reloads, this time with all the info from the form, as
    $_POST info.
    > If all this info is correct, you redirect to the thank
    you page.
    > You need to pass some of the info to the thank you page
    (for example to
    > echo the name of the person who just applied).
    > SO, when the form is published and the page reloads, you
    need to store
    > this info, and pass it to the thankyou page.
    >
    > here's we go, scematically:
    >
    > <?php
    > if [form submitted]...
    > $name = [submitted name from form field];
    > [if everything in the form is correct and we redirect to
    thankyou
    > page:]
    >
    header('Location:thankyoupage.php'.?name=$_POST['name']);
    > }
    > ?>
    >
    > Then in thankyou page,
    >
    > $name = $_GET['name'];
    > echo $name;
    >
    >
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • .aspx forms, required fields left blank

    Hi. I am working with someone on an .aspx page. They created the page & all I do is test it. We put this page live for a week & someone filled out the form, but somehow managed to skip a couple required fields. I do not know how they did this, because we have a pop-up window that will come up if you did not enter a field in, it will let you know. 3 fields were not filled in that are required. Is there a special blank character they could have put in? I tried the space bar but that did not work. Any ideas as to why or how they got around this?
    Thanks.

    A link to your form page would help, but sounds like JavaScript is being used for the form validation, and the user may have had JavaScript disabled? Otherwise, the required fields are possibly being set via hidden fields in the form, in which case a spammer could by-pass the form and submit directly to your script, getting around the fields being required. Both are just possible guesses though.

  • PHP Form Emailing Fields But No Data

    Hello,
    I am running into a little problem with my PHP form script.  I am able to email my form and receive a message, however the message has no data, except for where I have check boxes.  Can anyone help me solve this dilemma?  Some of the code has been remove intentionally.
    I will post my code:
    <?php
    /* Email Variables */
    $emailSubject = ' Registration Form';
    $webMaster = 'de';
    /* Data Variables */
    $registrationname = $_POST['registrationname'];
    $registrationphone = $_POST['registrationphone'];
    $registrationemail = $_POST['registrationemail'];
    $registrationdistrict = $_POST['registrationdistrict'];
    $registrationposition = $_POST['registrationposition'];
    $onecredit = $_POST['onecredit'];
    $twocredit = $_POST['twocredit'];
    $threecredit = $_POST['threecredit'];
    $body = <<<EOD
    <br><hr><br>
    Name of Register: $registrationname <br>
    Day Time Phone Number: $registrationphone <br>
    Email Address of Register: $registrationemail <br>
    Name of School District: $registrationdistrict <br>
    Position/Job Title: $registrationposition <br>
    Register for 1 Credit: Learning to Use the easyCBM Assessment System: $onecredit <br>
    Register for 2 Credits: In-Depth Knowledge of the easyCBM Assessment System: $twocredit <br>
    Register for 3 Credits: Enroll in Both of the Above Options: $threecredit <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body,
    $headers);
    /* Results rendered as HTML */
    $theResults = <<<EOD
    <html>
    <head>
    <title>sent message</title>
    <meta http-equiv="refresh" content="6;URL=http://.html">
    <style type="text/css">
    <!--
    body {
    background-color: #D9D3A9;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: normal;
    font-weight: normal;
    color: #000000;
    text-decoration: none;
    padding-top: 200px;
    margin-left: 200px;
    width: 800px;
    -->
    </style>
    </head>
    <div align="center">Thank you! Your request has been sent.
    You will return to the page in a few moments.</div>
    </div>
    </body>
    </html>
    EOD;
    echo "$theResults";
    ?>

    1) I would bring the line <cfoutput query="CheckUser"> lower down in the code, for example, just before the first table tag.
    2)These are probably mistakes
    <<table border="0" align="center" cellpadding="0" cellspacing="0">
    <input type="hidden" name="LogDate" value="Now()">
    I think they should be
    <table border="0" align="center" cellpadding="0" cellspacing="0">
    <input type="hidden" name="LogDate" value="#Now()#">
    3) You could revise the action page to:
    <cfif isDefined("form.logDate")>
    <cfinsert datasource="manna_premier" formfields="LogDate,TerritoryManager,Status,DSRName,ServiceName" tablename="TMStatusLog">
    <cflocation url="mp_order_form.cfm">
    </cfif>
    The table TMStatusLog must of course have columns LogDate, TerritoryManager, Status, DSRName and ServiceName.

  • PHP form requiring code entry

    Is anyone familair with a php form script that generates a
    random letter/number combo? I don't know officially what that is
    called but I have seen it on sites where you have to enter a code
    to submit.

    Captcha

  • Forms with Required Fields

    I have created a form that needs some required fields (using GoLive CS1). I have found NateMail which looks wonderful, but it requires the server to use PHP. On this forum, I found Nate's great instructions to test the server for PHP capability, and they failed the test. Do I have other options? Any suggestions? I'm fairly new to forms, so the easier the better. Thanks so much!
    Judy
    (Many thanks to Nate who has been a great help to me on many fronts during my web apprenticeship!)

    Thanks, Nate --- I will check with them to see if they have alternatives, although I think I'm going to suggest my client switch hosts. I'm not that familiar with all the technical jargon, but they have indicated before that they use Cold Fusion when we've talked about other form issues. (I don't know if that offers any leads on alternatives.) We do have 3 basic, functioning forms operating via their server, but we want to have some required fields where the viewer can't proceed without providing some info. Anyway --- thanks so much for your help --- it's much appreciated!

  • Pop up Window before saving remembering the need (forcing) to fill required fields in a form

    Hi!
    I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
    [I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
    I've have never use Java scripts in my life: I started about three days ago.
    1) I'm using Adobe Acrobat Pro X (Windows 7)
    2) I've created a form using Microsoft Word and save it as a pdf file.
    3) After I created a form using Acrobat Pro X;
    3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
    4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
    menus, and so...)
    5) Choosed Properties and marked 7 fields as "required";
    6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
    if (!event.target.valueAsString) {
    app.alert("My text My text", 3);
    7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
    8) So... What I really need? Here are the reasons for my request for help:
    8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
    8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
    8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
    8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
    var isFilled = true;
    for (var i=0;i < this.numFields;i++){
    var f = this.getNthFieldName(i);
    if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
    if (!isFilled) app.alert("You must complete all the required fields");
    8.3.) With the help of UVSAR I used:
    var mailto = this.getField('emaddr').valueAsString;
    if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
    the mail." });
    else app.alert("Cannot submit form until the email address field is completed");
    but gives me an error (Note: I named the filed with e-mail "emaddr")
    Once again Thank you so very very much to all the kind people who take their time to share knowledge...
    I'm not a native speaker, sorry for some errors
    Best regards
    AC

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    how to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    No way with just the free Reader. It may be done with Adobe Acrobat.

  • Bypass Required Field Validation when needed in PDF Dynamic Form

    I faced a tricky situation, where some fields are required, but we need to allow bypass required (mandatory) validation rule when saving the form, and require to fill such fields when submitting the form. In other words, provide flexible control when to turn On / Off this feature.
    I wanted to implement a flexible solution, and I will post my findings here. Appreciate your feedback for improvements.
    Steps:
    1. Mark rquired fields as required.
    2. Specify "Empty Message" as "This field cannot be left blank", or similar.
    3. Specify "Validation Script Message" as "This field must have a proper value before submit", or similar.
    4. Create a Global Form Level Variable something like "StopTotalValidation" and default as "1" means by default, Turn Off Validation for some cases.
    5. For the fields which require this type of control, add the script (to be defined later) on the "validate" event:
    myTools.validateForRequiredField(this);
    6. Create a Script Object "myTools" and add the following script:
    function initStringFunc() {
    //call this function on Document Initialize
    String.prototype.trim = function() {
        return this.replace(/^\s+|\s+$/g,"");
    String.prototype.ltrim = function() {
        return this.replace(/^\s+/,"");
    String.prototype.rtrim = function() {
        return this.replace(/\s+$/,"");
    String.prototype.isEmpty = function() {
        return (this == null) || this.trim() == "";
    function setNodeProperty(theNode, theProperty, newValue) {
       if (theNode[theProperty] != newValue) {
            theNode[theProperty] = newValue; 
    function isNodePropertyEmpty(theNode, theProperty) {
        var result;
        if (theNode == null || theNode[theProperty] == null) {
            result = true;
        } else {
            result = theNode[theProperty].isEmpty();
        return result;
    function disableTotalValidation() {
        StopTotalValidation.value = "1";
    function enableTotalValidation() {
        StopTotalValidation.value = "0";
    function isTotalValidationOn() {
        return StopTotalValidation.value != "1";
    function isTotalValidationOff() {
        return StopTotalValidation.value == "1";
    const conRequired = "(required)";
    function validateForRequiredField(theFld) {
        // Bypass Required Field Validation when Global Validation is Off.
        var result=false;
        if (theFld) {
            if (theFld.mandatory && theFld.mandatory == "error") {
                if (myTools.isNodePropertyEmpty(theFld, "rawValue")) {
                    myTools.setNodeProperty(theFld, "rawValue", conRequired);
                if (isTotalValidationOn()) {
                    if (isNodePropertyEmpty(theFld, "rawValue") || theFld.rawValue.toLowerCase() == conRequired.toLowerCase()) {
                        result = false;
                    } else {
                        result = true;
                } else {
                    result = true;             
        } else {
            result = false;
        return result;
    7. Now, on the click of "Save" button call the function "disableTotalValidation()" and on the click of "Submit" button call the function "enableTotalValidation()".
    I have just finished implementing the above solution, and as per my initial testing, it is working fine.
    I will post this to my Google Docs workspace, and provide updates their.
    Tarek.

    Hi Tarek,
    I see what you mean in relation to clarity if you used the form variable approach. It was only a suggestion. Like so many things in LC, there is more than one way to finding a solution to a problem.
    The triple equal sign (===) is testing if the condition is equal, but to a higher standard. It is testing if the values are identical to each other. For example if you were testing if a textfield was empty, with Equality (==) you might have this:
    if (this.rawValue == null || this.rawValue == "") {
         // Some script
    If you use Identity (===) you can do the same thing with less script:
    if (this.rawValue === null) {
         // Some script
    It is also useful when testing the value of an object, but also the type (eg string, number, Boolean).
    Lastly, it can be used for non-identity (!==).
    In relation to createNode() etc, apart from John's blog, it is covered in the LC documents: http://www.adobe.com/support/documentation/en/livecycle/documentation.html. Look for the scripting guides and the guide to the XML Form Object Model.
    Good luck,
    Niall

  • Not Required Field in Form

    I’m trying to create a registration form with required and not required fields, but I’m getting a data base error (Column 'city' cannot be null) in those fields that I leave in blank. I noticed that in the Data base palette (DW CS6) all the table’s rows it said “required”. How can I get around this issue?
    Thank you

    Set the 'city' field to NULL in the database. That will give the option of either filling in the information or leaving it blank

  • Create Calculated Field in PHP Form

    Hi,
    I'm trying to create a calculated field that will work out the average of ratings given during the input of a form. This field will then submit the average value with the form at the end (which is why I need the value to calculate before the form submits - i.e., as the form is filled in).
    I have found the following code (designed for HTML forms rather than PHP forms, but I'm hoping it might work). It doesn't seem to do anything - the field doesn't show any information. Help?
    <script language=javascript>
    <!--//
    function dm(amount)
      string = "" + amount;
      dec = string.length - string.indexOf('.');
      if (string.indexOf('.') == -1)
      return string + '.00';
      if (dec == 1)
      return string + '00';
      if (dec == 2)
      return string + '0';
      if (dec > 3)
      return string.substring(0,string.length-dec+3);
      return string;
    function calculate()
      Opp1 = 0;  Inv1 = 0;  Com1 = 0;  wlb1 = 0;  Com2 = 0;  Atm1 = 0;  Per1 = 0;  Inc1 = 0;  Rew1 = 0;  Env1 = 0;  Gro1 = 0;
      if (document.form1.Opportunity.value > "")
         { Opp1 = document.form1.Opportunity.value };
      document.form1.Opportunity.value = eval(Opp1); 
      if (document.form1.Investment.value > "")
         { Inv1 = document.form1.Investment.value };
      document.form1.Investment.value = eval(Inv1); 
      if (document.form1.Community.value > "")
         { Com1 = document.form1.Community.value };
      document.form1.Community.value = eval(Com1); 
      if (document.form1.WLB.value > "")
         { wlb1 = document.form1.WLB.value };
      document.form1.WLB.value = eval(wlb1); 
      if (document.form1.Communication.value > "")
         { Com2 = document.form1.Communication.value };
      document.form1.Communication.value = eval(Com2); 
      if (document.form1.Atmosphere.value > "")
         { Atm1 = document.form1.Atmosphere.value };
      document.form1.Atmosphere.value = eval(Atm1); 
      if (document.form1.Performance.value > "")
         { Per1 = document.form1.Performance.value };
      document.form1.Performance.value = eval(Per1); 
      if (document.form1.Inclusion.value > "")
         { Inc1 = document.form1.Inclusion.value };
      document.form1.Inclusion.value = eval(Inc1); 
      if (document.form1.Rewards.value > "")
         { Rew1 = document.form1.Rewards.value };
      document.form1.Rewards.value = eval(Rew1); 
      if (document.form1.Environment.value > "")
         { Env1 = document.form1.Environment.value };
      document.form1.Environment.value = eval(Env1); 
      if (document.form1.Groups.value > "")
         { Gro1 = document.form1.Groups.value };
      document.form1.Groups.value = eval(Gro1); 
      Totamt =
         eval(Opp1) +
         eval(Inv1) +
         eval(Com1) +
         eval(wlb1) +
         eval(Com2) +
         eval(Atm1) +
         eval(Per1) +
         eval(Inc1) +
         eval(Rew1) +
         eval(Env1) +
         eval(Gro1) ;
      document.form1.GrandTotal.value = dm(eval(Totamt));
    //-->
    </script>
    Any suggestions gratefully received.

    @uscart - Thanks for your thoughts. I think I may try and pursue the javascript option (considering how far I've gone with it) but don't quite understand your response. Does it matter if the input field isn't a text box? The fields are radio buttons (giving options 1-10), liek so:
      <input name="Investment" type="radio" class="star" value="1"/>
      <input name="Investment" type="radio" class="star" value="2"/>
      <input name="Investment" type="radio" class="star" value="3"/>
      <input name="Investment" type="radio" class="star" value="4"/>
    ...etc, etc, etc... for each of the input fields listed above.
    Where do I put the calculate() function? After each "option", or is there a different reference? And does it need to be added to the GrandTotal field as well (the field in which the calcualtion is to be displayed)?
    Thank you!

  • How to make Buyer and Planner fields in Master Items Form Required without

    How to make Buyer and Planner fields in Master Items Form Required without using personalization?
    1) Steps to Reproduce
    Under Application Developer Common Modules responsibility,
    1) Query Region MTL_SYSTEM_ITEMS
    2) Click on Region Items
    3) Add Buyer Id and Planner Code attributes with Required checkbox checked.
    4) Bounce iAS server and JVM and clear java cache
    5) Changes not taking effect
    Current Application Release: 11.5.10.2 (3460000)
    Current INV Rollup: INV.J RUP22 (9878808)
    Current WMS Rollup: WMS RUP19 (9951502)
    Product Installation List :
    Product Installation: 11i.BOM.J: Installed
    Product Installation: 11i.EGO.E: Installed
    Product Installation: 11i.ENG.I: Installed
    Product Installation: 11i.INV.J: Installed
    Product Installation: 11i.PO.I: Installed
    Product Installation: 11i.WMS.G: Installed
    client needs to make the Buyer and Planner fields under Inventory->master Items form to be required.
    He tried using the Application Developer Common Modules responsibility, to find the Master Items Region and added the Buyer Id and Planner Code attributes with the Required check-box set to Yes. He bounced the iAS server and cleared java cache, but the changes do not take effect.
    client does not want to use form personalization.
    Can you please provide more assistance for using Application Developer Common Modules responsibility?
    Edited by: jemar98 on Aug 9, 2011 1:44 PM

    A forms developer could make those fields required with a CUSTOM.pll extension if you didn't want to use forms personalization. Both are considered customizations to standard functionality and may or may not require rework after patching or upgrades.

  • PHP dynamic content for form list field on tabbed panel

    I have been trying to use PHP dynamic content to populate a
    form list field. Works fine on a regular page, but doesn't seem to
    work (or works very erratically) if the form is on a tab of a Spry
    tabbed panel. Erratically means (as I've observed) the values will
    appear if the list field is the second on a tab but not the first.
    Haven't tried three on a tab... Anyone know if this is supposed to
    work?

    Thank You !!! to both of you above.
    Shant,
    The scheme youv'e proposed makes sense and I had thought of the same before posting the question. I already did a little POC on it but then realised this works if I can use complete list of values of 1st Field to decide the value of 2nd and so forth. But I rather need to know which one among those was clicked. Moreover, my right side list is usually not null when page loads for the first time (bcoz Field name is a path exp).
    Also, the real problem here is that, when I click on different values on the right side of multi-select(already selected values) of 1st Field, allowedValues and Derivation of 2nd should change. That GUI event is not capturable from whatever I've been able to read (onClick is not applicable for MultiSelect, and onChange doesn't serve my purpose, coz I need to know what value was clicked on).
    The solution I thought and implemented was to take the right side of multi-select, into an extra (read redundant), single-select Field. And then have the 2nd multi-select depend on it via Derivation and allowedValues.
    Having two redundant single-selects, isn't the most elegant solution but I can't think of anything better. Any thoughts ???
    If I'm not really overlooking something MultiSelect class should have an extra Property exposed....
    - AndyDev
    Edited by: AndyDev on Nov 6, 2007 2:04 PM

  • Problems turning off required fields in contact forms

    Hello
    I have created a form using the "simple contact forms' widget, but I am struggling to turn off required fields. I can see the tick box, but it greyed out, any ideas?
    Thanks

    Thank you posting.
    First name, last name and email address are the mandatory fields and can't be turned off.
    Regards,
    Aish

Maybe you are looking for

  • Poor Service from BT, adamant about problem!

    Hello guys and gals. Right to start the problem I have had over the last year was with my speed slowing from 76-78mbps Download to 46-56mbps. We recently changed to the home hub 5 and see no issue has been resolved. I ran the speedtest it its fixated

  • Who is on my wireless network? How do I tell?

    Is there a way to tell who is on my wireless network? I have an Extreme Base Station and I want to know if there is a way to tell if my neighbors are on my network or not.

  • I am suddenly not receiving my voicemails in a timely manner.

    My voicemails stopped then 1 day i had 18 of them all past.  now i am not getting them again.  i am frequently in  areas of high reception so that should not be an issue and the fact that i had no problem until about 3 weeks ago has me confused.

  • An error occurred when attempting to change modules. How do I get past this screen?

    I am installing Lightroom 3 from a CD-ROM. I installed this easily on the iMac but now when I tried to install on the MacBook Pro I get this error message: An error occurred when attempting to change modules. I have tried everything that I know to do

  • SNMP Protocol from Azure virtual machine

    Hi All, We have one web application where we use .Net OLEPPRN.SNMP protocol library for get the printer details. I am not able to get the printer details from Azure virtual machine(It works fine in my network). Allowed SNMP ports in Azure EndPoints (