Conditional Spry Confirm Validation

Hi Chaps,
I know there are a few of these threads about, however, the answers usually point to a 404 webpage.
I'm after a conditional Spry Confirm Validation Text Field.
E.G. if a user decides to change a password, the (required) confirm validation comes into effect.
If anyone can point me in the right direction, it would help me out.
Many thanks
Samuel

never mind, found this: http://forums.adobe.com/message/2983481#2983481#2983481

Similar Messages

  • Help with conditional Spry Form Validation

    Hi,
    I am creating some validation for this form and need some help.
    Need to require a finish to be selected if a qty is selected and visa versa.
    I have got this part working but can't get it to destroy the validation if the qty/finish is added and then removed.
    Here is the code for just the 2 fields:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Deleting and rebuilding validations</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    // build validations and delete / destroy them
    function val(e){
         // get the value
         value = e.value;
            //check if value is greater than 0
          if (value>= 1 ){
              // if it is then turn on validation
                  var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", "none", {isRequired:true});
            return true;
    function val2(e){
         value = e.value;       
          if (value= "" ){
                  var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {isRequired:false});
            else { var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {isRequired:true}); }
            return true;
    </script>
    </head>
    <body>
    <form id="form1" method="post" action="#">
         <p><span id="spryselect1">finish:
             <select name="finish" id="finish" onclick="val2(this);" >
            <option>please select</option>
            <option value="6, Antique Wiluna White">Antique Wiluna White</option>
            <option value="12, Antique Wiluna White Gloss">Antique Wiluna White Gloss</option>
            <option value="2, Charred Oak">Charred Oak</option>
            <option value="10, Charred Oak Gloss">Charred Oak Gloss</option>
            <option value="5, Gentle Beige">Gentle Beige</option>
            <option value="1, Refined Oak">Refined Oak</option>
            <option value="9, Refined Oak Gloss">Refined Oak Gloss</option>
            <option value="4, Rocksalt">Rocksalt</option>
            <option value="7, Snowdrift">Snowdrift</option>
            <option value="13, Snowdrift Gloss">Snowdrift Gloss</option>
            <option value="3, Vicenza Walnut">Vicenza Walnut</option>
            <option value="11, Vicenza Walnut Gloss">Vicenza Walnut Gloss</option>
            <option value="14, 2 Pack Gloss White">2 Pack Gloss White</option>
          </select>
             qty:
    </span><span id="sprytextfield1">
    <input type="text" name="qty" id="qty"  onblur="val(this);" />
    </span>
    <input type="submit" value="Submit" />
    </p>
    </form>
    <script type="text/javascript">
    var sprytextfield1, spryselect1;
    </script>
    </body>
    </html>
    Also is there a shortcut so this doesn't have to be repeated for all 80 or so fields?
    Cheers

    I am very busy at the moment with having a few projects on hand. Maybe the following example will help you. If not, please come back here.
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Deleting and rebuilding validations</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
    </head>
    <body>
    <form id="form1" method="post" action="#">
      <p>
        <input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
        <label for="Married">Married</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
        <label for="Defacto">Defacto</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
        <label for="radio">Single</label>
      </p>
      <hr>
      <span id="sprytextfield1">
        <label for="f_married">Married</label>
        <input name="married" id="f_married" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield2">
        <label for="f_defacto">Defacto</label>
        <input name="defacto" id="f_defacto" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield3">
        <label for="f_single">Single</label>
        <input name="single" id="f_single" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <hr>
      <input type="submit" value="Submit" />
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var sprytextfield1,
            sprytextfield2,
            sprytextfield3;
    // build validations and delete / destroy them
    function val(e){
        // get the value
        value = e.value;
        // see what radion button we have
        if(value == "Married"){
            // if there inst a validaton build one
            if(!sprytextfield1){
                sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
            // if there is a validaiton in sprytextfield destory it, and clear the variable
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
            // same as the rest
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Defacto'){
            if(!sprytextfield2){
                sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Single'){
            if(!sprytextfield3){
                sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
        // proceed with the rest as normal
        return true;
    </script>
    </body>
    </html>
    Gramps
    Carn the Pies

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

  • UI Datepicker and Spry textfield Validation

    Hi, I am having a problem with using the UI Date picker and Spry textfield Validation together. I have created a sample form: 2 input boxe, the test box has the datepicker and spry validation and test2 has the date picker only,one submit button and some php code that echos the boxes values on submit.
    My date picker is date formated as 'yy-mm-dd' for four digit year.  My spry validation is formated 'yyyy-mm-dd' with validate on submit.
    Now when I click on the test input box the datepicker comes up normally and i select a date. I then select the date on test2. Once I click the submit button the test field with spry validation come back saying a value is required and nothing else happens.
    I was playing around and trying other things to get it to work and I noticed that when I select the test inputbox and the calander pops up if I enter some numbers into the text box then select a date from the datepicker then enter a date in the test2 inputbox and hit submit it works.
    So it appears to me that the validation is not reading anything in the test field when I just select a date.  Why is that?  When I select a date it shows a date in the inputbox.  It makes it hard to use the datepicker on a form.
    Any help would be a preciated.  Code is below.
    Thanks Winrol
    <?php echo "Test box 1 value = ". $_POST['test']. "<br/>" ?>
    <?php echo "Test box 2 value = ". $_POST['test2'] ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2137022: #datepicker */
    #datepicker .ui-widget {
    font-family: inherit;
    #datepicker .ui-datepicker {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    #datepicker .ui-datepicker-title {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    color: #000;
    font-weight: normal;
    line-height: 1.8em;
    #datepicker .ui-state-default, .ui-widget-content .ui-state-default {
    border-color: #e6e6e6;
    background-color: #e6e6e6;
    color: #555555;
    #datepicker .ui-state-default, .ui-state-default a {
    color: #555555;
    #datepicker .ui-state-highlight, .ui-widget-content .ui-state-highlight {
    border-color:#FCEFA1;
    background-color:#FCEFA1;
    color:#363636;
    #datepicker .ui-state-active, .ui-widget-content .ui-state-active {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #212121;
    #datepicker .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus
    border-color: #5F5F5F;
    background-color: #5F5F5F;
    color: #212121;
    #datepicker .ui-widget-header
    border-color: #5F5F5F;
    background-color: #808080;
    border-width: 1px;
    /* Text attributes for the Days of Week Text */
    #datepicker .ui-datepicker table th
    font-size: .8em;
    color: #000;
    font-weight: bold;
    /* EndOAWidget_Instance_2137022 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2137022" binding="#datepicker" />
    </oa:widgets>
    -->
    </script>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2137022: #datepicker
    $(function() {
    $('input').filter('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
    // EndOAWidget_Instance_2137022
      </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-color: #FFC;
    </style>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
      <p>
        <label for="test">test</label>
        <span id="sprytextfield1">
        <input name="test" type="text" class="datepicker" id="test"/>
        <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
      <p>
        <label for="test2">test2</label>
        <input name="test2" type="text" id="test2"  class="datepicker" />
      </p>
      <p onclick="<?php echo $_POST['test'] ?>">
        <input type="submit" name="submit" id="submit" value="Submit" />
      </p>
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"yyyy-mm-dd", hint:"yyyy-mm-dd"});
    </script>
    </body>
    </html>

    This does work
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet">
    </head>
    <body>
    <form action="" method="post">
    <span id="sprytextfield1">
    <label for="mydate">Date:</label>
    <input id="datepicker" name="mydate" type="text">
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
    <div id="datepicker" class="ui-glass-gradient ui-80TopTo0Bottom-gradient-header"></div>
    <input name="mysubmit" type="submit">
    </form>
    <script src="SpryAssets/SpryValidationTextField.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js"></script>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"mm/dd/yyyy", validateOn:["change"], useCharacterMasking:true});
    $(function() {
        $('#datepicker').datepicker({ showOtherMonths: false });
    </script>
    </body>
    </html>
    Gramps

  • Spry textfield validation

    Hi, how can I modify this code for the spry textfield validation.js file? My text field is set to yyyy-mm-dd.  When I enter a date and hit the submit button all works well but, how can I modify this portion of the .js file so the date yyyy-mm-dd is not less than today's date?
    ===================
    'date': {
    validation: function(value, options) {
    var formatRegExp = /^([mdy]+)[\.\-\/\\\s]+([mdy]+)[\.\-\/\\\s]+([mdy]+)$/i;
    var valueRegExp = this.dateValidationPattern;
    var formatGroups = options.format.match(formatRegExp);
    var valueGroups = value.match(valueRegExp);
    if (formatGroups !== null && valueGroups !== null) {
    var dayIndex = -1;
    var monthIndex = -1;
    var yearIndex = -1;
    for (var i=1; i<formatGroups.length; i++) {
    switch (formatGroups[i].toLowerCase()) {
    case "dd":
    dayIndex = i;
    break;
    case "mm":
    monthIndex = i;
    break;
    case "yy":
    case "yyyy":
    yearIndex = i;
    break;
    if (dayIndex != -1 && monthIndex != -1 && yearIndex != -1) {
    var maxDay = -1;
    var theDay = parseInt(valueGroups[dayIndex], 10);
    var theMonth = parseInt(valueGroups[monthIndex], 10);
    var theYear = parseInt(valueGroups[yearIndex], 10);
    // Check month value to be between 1..12
    if (theMonth < 1 || theMonth > 12) {
    return false;
    // Calculate the maxDay according to the current month
    switch (theMonth) {
    case 1: // January
    case 3: // March
    case 5: // May
    case 7: // July
    case 8: // August
    case 10: // October
    case 12: // December
    maxDay = 31;
    break;
    case 4: // April
    case 6: // June
    case 9: // September
    case 11: // November
    maxDay = 30;
    break;
    case 2: // February
    if ((parseInt(theYear/4, 10) * 4 == theYear) && (theYear % 100 != 0 || theYear % 400 == 0)) {
    maxDay = 29;
    } else {
    maxDay = 28;
    break;
    // Check day value to be between 1..maxDay
    if (theDay < 1 || theDay > maxDay) {
    return false;
    // If successfull we'll return the date object
    return (new Date(theYear, theMonth - 1, theDay));   //JavaScript requires a month between 0 and 11
    } else {
    return false;
    ======================
    Thanks Winrol

    V1 Fusion wrote:
    > Yes you can use regular expessions:
    >
    > function validatePhone(value){
    > return
    >
    /^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?
    >
    \d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3})
    > )?$/.test(value)
    > }
    >
    > var custom = new Spry.ValidationTextField(id, "custom",
    {validation:
    > validatePhone, validateOn:["blur", "change"]})
    >
    > regexp from
    http://regexlib.com/
    Excellent, thank you, that will get me in the right
    direction. Its not
    100%, but I think I can tinker with an expression to get what
    I want.
    The number is couldn't handle is +44 (0)113 255 7666 but its
    not an
    approved format anyway, but lots of companies still do it
    this way, so I
    want to ensure I get it right.
    Thanks again!
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Condition values and validity periods of a Scheduling agreement .

    Dear Friends,
    I have one querry .Where does (in  Database table) ,  the condition values and validity periods of a Scheduling agreement stored .
    Thanks and regards in advance.
    Vijay.
    Edited by: vij kot on Sep 9, 2008 12:09 PM

    Hi,
    Refer Tables
    KONH - Condition Header
    KONP - Condition Item
    KONV - Conditions (Transaction Data)

  • CS4 Spry field validation - CS3 files?

    I designed a form in CS3.  I am now working in CS4 so I was getting a Spry error message - about outdated code.  I reentered all the validation fields but now the error messages show in the form when it is launched.  I realized my Spry folder of files is the original ones from CS3.  How do I get the new files I need?  I have run this through the validator and fixed everything I know how to fix - even though that isn't all of it!
    files are http://streitenterprises.fatcow.com/contact/index.html

    Thanks, I actually found that article earlier and it also reads: 
    "This extension updates Dreamweaver CS3 to use the Spry 1.6.1 assets for its current features. The extension also updates code hinting and code coloring to reflect the latest updates in Spry 1.6.1. The Spry Updater includes a command that provides the ability to update the Spry assets in your site(s). This extension only updates existing Spry files in Dreamweaver CS3 and those used in your sites. It does not add any additional functionality (widgets, etc) to the product."
    I updated to version 1.6.1 long ago.  The updater only applies to built-in CS3 widgets - it doesn't ADD new widgets that have come out since CS3 (unless I'm completely missing something here).  What I'm looking for is to add widgets that I don't have in CS3, kinda like adding extensions.  Am thinking one must purchase CS4 to get the four additional widgets it provides?
    "CS4 also adds four new Spry wizards to 13 available in CS3. These are the Spry Validation Password, Spry Validation Confirm, Spry Validation Radio Control Group, and Spry Tooltip."
    I'm want those without having to upgrade to CS4!

  • Spry form validation working in IE but not in Firefox or...

    Ok putting together a contact us form and would like a few
    fields to be required. It works in IE7 but not in Firefox, Safari
    or Google Chrome. In IE7 I get the error msg for no valid email but
    in the other browsers it just does nothing. Here is the link to the
    page
    Aspen
    Homes
    Can anyone help with this? I have used Spry on a couple other
    site and never had an issue. I am updated to the most recent
    version also. I am running
    Vista Ultimate (64-bit)
    DW CS3 or DW CS4 (both do the same thing)
    I have attached my code here in a txt file
    Page
    Code
    thanks
    B

    Anyone?

  • Conditional Execution of Validation Rule defined in EO

    Hi All
    I'm developing a web application using jdeveloper 11.1.0.3
    I have a drop down list with some values. There is a compare validation rule defined in EO object for an attribute. But I dont want to fire this validation only when a certain value from the drop down list is selected.
    When we go to edit option of this validation rule there is a tsb called validation execution. I want to know how to fill conditional execution area to full fill my problem

    You can create a Groovy expression in the 'Validation Execution' tab to return true based on which the validation rule will be applied. The new value of the attribute can be accessed via the attribute context validation variable 'newValue'
    Check this blog for more details on validation rules:
    http://blogs.oracle.com/workingwithadf/2010/11/adf-bc_business_rulesvalidation_eovo.html
    hope this helps.
    Regards,
    ~K

  • Excise Condition Types with validity

    Dear All
    Is it possible to maintain tax conditions with validity periods. for ex: jmop 8% from 1/1/2010 to 26/02/2010....10% from 27/02/2010 to 31//3/2010..If Yes, what tax rate will be triggered for existing open PO's. If the GRPO date is 27.02.2010 or 28.02.2010
    Kindly throw some light
    Regards
    JK

    Hi,
    As per our observations,
    If PO is before 27.2.2010 and GRN on or after 27.2.2010, system will calculate JMOP @ 10% only.(.(Condition Record JMOP-8%-1.1.2001 -26.2.2010) & ( 10% from 27.2.2010-31.12.2010 )
    If GRN Booked before 27.2.2010 and invoice booking on or after 27.2.2010 Cenvat Clearing will be @8% only.(Condition Record JMOP-8%-1.1.2001 -26.2.2010) & ( 10% from 27.2.2010-31.12.2010 )
    IF PO is on or after 27.2.2010 JMOP @ 10% only.
    Experts Pl. comment on this.
    Regards,
    Rajeswari

  • PL/SQL Equivalent to the condition "No inline validation errors displayed"

    Hello,
    I've seen this on another thread but can't find it. I need two conditions to be true to show a region: a value is not null and no inline validation errors are showing. Does anyone know the PL/SQL (API call?) to retrieve the number of errors being displayed on screen?

    Malcom,
    You can use the global variable wwv_flow.g_inline_validation_error_cnt for your access.
    So your region displayed condition could be a pl/sql function that would return true or false...like this....
    DECLARE
       l_number_of_errors number := 0;
    BEGIN
       l_number_of_errors := wwv_flow.g_inline_validation_error_cnt;
       If (:P1_test_item is NULL or  l_number_of_errors>0 ) then
             return FALSE;
       else
            return TRUE;
       end if;
    END;So, if the item is null, or there is any inline validation error, the region will not be displayed...

  • Function to call spry textfield validation

    Hi every body.
    I've a question for you.
    I'm using a filed spry text field validation. It works perfectly when y press submit, but I need to do this:
    I put some text in a textfield using PHP, the validation is only maked when I click the text field, or when  the user press a key, but how to make a function to do the validation after I put data on textfield.

    Click the on Blur as per
    Gramps

  • Spry Textarea validation extension to prevent spam

    I am using the fairly limited features of the spry framework in Dreamweaver to validate forms.
    When I get to the textarea, validation is limited to:
    required
    min char, char count
    AND NOT MUCH MORE!
    I would like to continue to use the spry framework since it is pervasive inside DW CS4 and seems useful - BUT I need to be able to add functionality.
    Specificly I would like to check the textarea for content matching a regx string. To determin if the form is getting hit by a spam bot.
    I can do this in PHP, like so;
    <?PHP
    // Spam Detection code block
    // The \b in the pattern indicates a word boundary, so only the distinct
    //word "web" is matched, and not a word partial like "webbing" or "cobweb" */
    // Check for html and img tags in string
    function check($comment) {
      // if(ereg('(href=\b|http\b|url=http\b|<a href|<IMG=|<img|img=|scr=|www\b)@i', $comment)) {
      if (preg_match('(href=\b|http\b|url\b|http\b|<a href|<IMG=|<img|img\b|scr\b|www\b)i', "$comment")) {
          // comment looks dirty, lets put up a bogus thankyou.
          echo("<pre> 
         </pre><center> Thanks <p>We have received your comment and hope you enjoyed visiting our site. <p>To continue browsing, use the links above.</center>");
    exit();
    else{ // comment is clean of URLs
    // End of Spam Detection code block 
    ?>
    Is there a way to integrate this code (or similar javascipt) into the Spry library, so I can do this in DW?
    Anti spam technologies are a very important part of forms these days.
    I hope other people value this request and pipe up about it.
    Thanks
    -Daniel Hoviss

    Never mind. After doing some experimenting, it turns out it's
    something in my company's template that is conflicting with
    something.
    Now I just have to figure out what it is.

  • Spry textfield validation for alphanumeric input

    Hi,
    How can I set the spry input to the following pattern that I need: only allow alphanumeric.

    You can build your own custom validations with Spry.
    var custom = new Spry.Widget.ValidationTextField("id", "custom", {
         validation: function( value, options ){
              return /[a-z]/gi.test( value ); // your validation
    Related reading:  http://labs.adobe.com/technologies/spry/articles/textfield_overview/index.html and http://labs.adobe.com/technologies/spry/samples/validationwidgets/TextfieldValidationSampl e.html

  • Spry fields validations

    SUBMIT PROBLEM
    I have a webpage in a .cfm (ColdFusion) format to be used in
    a form. There are some Spry fields in it, like a validation text
    field.
    But I have some problems:
    When the user enters a wrong email format, the form does not
    do a submit. The form is good, but there is not any error message
    to show the user that the entered email address is not correct
    (Current error message is only for empty field).
    Any suggestions on how to fix this problem?
    Thanks

    "Merdad" <[email protected]> wrote in
    message news:gmo4ab$a6$[email protected]..
    > SUBMIT PROBLEM
    >
    > I have a webpage in a .cfm (ColdFusion) format to be
    used in a form. There are
    > some Spry fields in it, like a validation text field.
    > But I have some problems:
    >
    > When the user enters a wrong email format, the form does
    not do a submit. The
    > form is good, but there is not any error message to show
    the user that the
    > entered email address is not correct (Current error
    message is only for empty
    > field).
    >
    > Any suggestions on how to fix this problem?
    > Thanks
    >
    See if this helps:
    http://blog.fusefly.info/index.cfm/2007/10/7/Using-CFFORM-and-Spry-validation
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com

Maybe you are looking for