Validation Script Message

Is it possible to have the Caption of a field to be referenced in the Validation Script Message?
Or
The focus to be put back on the field?

I'm looking for something similar.
When the user submits the form, I want to run through and verify all the required fields are filled in, and then have a message box pop up saying "Please enter the following required information: *caption of missing field*"
I'm not sure how to manipulate the code in your answer to do this.
Thanks for your help!!

Similar Messages

  • How to do newline in Validation Script Message

    Hi
    im trying to write a multiline error message in the Validation Script Message for a textfield but everytime I hit return, i end up at the front of the current line instead of a new line.  I've also tried \n with no luck.  The only way i've found is by entering the text into notepad and then cut+paste into the Validation Script Message box.  Is this a bug with Designer?  I have Designer ES 8.2.1.3158.1.475346.
    I am aware of how to do it by script  ex.  this.validationMessage = "line1\nline2" but what i want to is store the Section and field name in the Validation Script Message box and then build the error message ontop via script.
    ex.
    this.validationMessage = this.validationMessage + "Validation failed due to ....";

    Just tested this and it looks like ctrl-enter works.

  • ExecValidate, but silently? (no validation/empty message boxes!!)

    Hi All
    I want to check if all fields are valid and filled in.
    I use execValidate().
    However, executing execValidate means all the validation script messages and empty messages are also displayed.
    Is there any way of checking for validity, but without the annoying message boxes popping up?
    Thanks,
    Shiv

    Hi Niall,
    Thanks for your response, but I'm already using LC Designer ES2, and my form target is Adobe Reader 9.1.
    I have a hidden boolean inside my form that I use in the following way :
    On the preSave event, I put the execValidate() result in my boolean to know if the form is "valid" or not. The form is filled in a "disconnected" mode, so there is no submit button, etc.
    What I want is the "execValidate()" to be silent for the user, so that I can have the info without any popup.
    However, I need those pop-up because there is a button "validate form" which is for the user, and i need custom warnings for some fields.
    Regards,
    Thomas

  • Error message on validation script

    Hi Guys,
        I created a validation script for MA to check the fill on the extention collection as below.
    productColln = doc.getExtensionCollection("PROD_HIER");
    productItr= productColln .iterator();
    for(member : productItr){
              if(!hasValue(member.get("fieldA"))){
                   exception.chainAtEnd(member.createApplicationException("fieldA","Please enter Max Value"));
              if(!hasValue(member.get("fieldB"))){
                   exception.chainAtEnd(member.createApplicationException("fieldB","Please enter the Unit Price"));
    if(exception.getChain() != null){
        throw exception.getChain();
        1. When the 'fieldA' and 'filedB' are blank, the error message is shown only for 'fieldA'. After i complete 'fieldA' the error message will be shown for 'fieldB'. It seem like it will show only for first one which is put in the chain. I would like the message to show all message in the chain.
        2. When the error message is shown the both fileds are covered by the red line but i would to have the red ' ! ' appear on the tab (ex. for product tab) as well. How can i implement that?
    Noppong,
    Thank you in advance

    Hi Noppong
    My understanding is once system gets an exception, it skips to throw statement and the subsequent exceptions, if any ,are skipped. Use of chain exception allows one to write one throw statement in the code rather than multiple throws at various points.
    I may be wrong so appreciate if someone can validate this.
    Regards
    Mudit Saini

  • Validation Script for Dates and General Event Questions

    I have just started using Javascript, and am now using some objects and methods etc. that I did not even know about. It's progressing rather well, now I need to know some Livecycle Designer Basics that I can't seem to answer from my searches.
    Here's what I am trying to do in English:
    I want users to choose a date that they will miss at our Farmers Market. I have the date field on the form - works well.
    I want to validate the entry for:
    The date must be today or in the future
    AND
    The date must be before the closing date
    AND
    The date must be a Saturday
    Here's some script I've written and placed in the Validation Event (I have actually written more for testing out that the results are coming out properly):
    ----- form1.#subform[0].Missdate::validate - (JavaScript, client) ----------------------------------
    var entereddate = this.rawValue;// The date vendor will not attend as entered on the form
    var dentry = new Date(entereddate.slice(0,4),[entereddate.slice(5,7)-1],entereddate.slice(8,10),0,0,0); // month starts at 0!
    var closingdate = "October 04,2008" // closing date of the market
    var today = Date();// today
    (dentry.getDay() = 6);// and attempt to validate that the day = Saturday - nothing happens!
    But now -
    How do I actually validate this - my last statement seems to be ignored. How to I force a 'false' being returned? In Formcalc I simply put a camparison statement here and if it resulted in 'False' validation failed and if it resulted in 'True' it passed - What's the JS equivalent? Or are the variables giving me troubles?
    Maybe I'm putting this in the wrong Event? If so which one should I place it in.
    I want to force the user to enter the correct data - how do I code this - and put in a custom message refering to this. I may even get fancy and ask the user if the next Saturday is what they meant if they enter the incorrect one (this will be a real challenge!)
    I think I'm lacking some basic knowledge here that other posts have assumed. Please refer me to any help pages as well - although I've done extensive searching on this and have not really found a good explanation of Validation - only specific pages that are not basic or general enough for my understanding. Thank!

    In the validation script you have to allow the field's length to be 0, or
    it will not be possible to clear it...

  • How to validate a date in a validation script

    I have a date field for which I have set a validation pattern using its Object palette i.e. Object > Value tab > Validation Pattern > Validation tab. The validation pattern I have there is simply 'date{YYYY-MMM-DD}' with an error message set in the Validation Pattern Message box.
    How do I perform this same validation using a javascript in the Validation event?
    I'd like to use a script instead so that I can better control when this validation will be performed.
    Thanks!!
    Marc

    Marc:
    If your field has a display picture clause, then you can detect if it formatted correctly by looking at field.formattedValue
    Specifically, if the value cannot be formatted, the formattedValue will be the same as the rawValue (unformatted).
    So a validation script that specifies:
    this.formattedValue !== this.rawValue;
    should detect invalid dates.
    See: http://blogs.adobe.com/formfeed/2011/06/understanding-field-values.html
    good luck
      John

  • RE: Validating XML message...

    Actually I stand corrected. XML Spy does seem to provide an OLE API to XML
    validation ( the isValid method on the IDocument class ) although I haven't
    tested it yet.
    In my previous post I was thinking of another XML product I tested earlier
    in the week which did not.
    -----Original Message-----
    From: Shaughnessy, Kevin
    Sent: Friday, April 20, 2001 08:59
    To: 'Rumen Georgiev'
    Cc: [email protected]
    Subject: RE: Validating XML message...
    Rumen,
    One idea that is possible is to use an OLE interface to a 3rd party XML
    product. This assumes your logic which needs to validate is running on a
    Windows box. But if so, it may work. Many products have type libraries which
    can be run through OLEGen to create Forte classes. Then you can use TOOL to
    talk OLE to that product.
    For example, XML Spy 3.5 has a type library from which I created a Forte
    project. Unfortunately this product didn't offer any extra features than
    Forte's XMLParser ( i.e. the API didn't allow me to validate the XML ) so I
    am back to using Forte's parser until I can test another product. If you
    find one that does what you want let me know.
    I've used OLE a lot with Forte to get functionality from other products (
    VISIO, MS Office ) that Forte doesn't provide and it works well. Its a
    platform dependent solution but one that may work for you.
    Kevin
    -----Original Message-----
    From: Rumen Georgiev [mailto:[email protected]]
    Sent: Friday, April 20, 2001 07:21
    To: [email protected]
    Cc: [email protected]
    Subject: RE: Validating XML message...
    Hi Kevin,
    From the answers I've got it seems Forte parser is anon-validating one. So we have to look for an external
    tool to validate these messages. What I am concerned
    about is the integration with Forte.
    Thanks for your help!
    Rumen
    Rumen,
    From Tech Note 11811:
    "ParserFactory.makeParser() will return a default,
    non-validating XML parser."
    My experience is that Forte's default XML parser will
    not validate but will throw an exception if the XML
    document is not well formed. I'm using the DOM
    model and this exception happens on the
    Document.importDocument( ) method.
    If you want anything more than that you'll have to do
    it externally.
    Kevin-----Original Message-----
    From: Rumen Georgiev [mailto:[email protected]]
    Sent: Thursday, April 19, 2001 11:49 AM
    To: [email protected]
    Subject: Validating XML message...
    We have to validate inbound XML messages before
    processing them. The guys on the other side are
    following XMLSchema recommendations to create their
    messages using xsd file for validation. We plan to
    use XMLParser Forte library and as far as I know it
    validates against dtd file (haven't tried yet). If
    this is true we have two options:
    1. Find a program to convert xsd into dtd file and
    use Forte XMLParser for validation.
    2. Validate the message beforehand with an external
    tool. That means integration between Forte and this
    tool.
    I would appreciate any help with either approach. Do
    you know of a program doing xsd into dtd? Have you
    used any existing tool on the market to validate
    using XMLSchema? Or may be there is another solution
    to
    this?
    Thank you in advance,
    Rumen
    =====
    Rumen Georgiev
    Forte Developer
    EXE Technologies
    (610) 872-4400 Ext.222
    Do You Yahoo!?
    Yahoo! Auctions - buy the things you want at great prices
    http://auctions.yahoo.com/

    Hi,
    there is some change in the XMLSPy4.3/XMLType Library 1.2 :
    Validation
    One common task on documents is to validate them against an assigned schema or DTD. If the XML file has no schema or DTD already assigned, use "Document.AssignSchema" or "Document.AssignDTD" to add the necessary references to the document.
    Examples:
    objSpy.ActiveDocument.AssignSchema "C:\mySchema.xsd", False
    or
    objSpy.ActiveDocument.AssignDTD "C:\myDTD.dtd", False
    If you want the user to select a schema or DTD, pass True as the second parameter to these functions to display a file-dialog. These methods only put the reference into the document and do not check the existence of the specified file. If the file path is not valid, the validation will fail.
    After you have assigned a valid schema or DTD reference to your file, you are able to validate it with "Document.IsValid". IsValid needs some out-parameters that must be declared as VARIANTs to be accessible from script languages like VBScript and JavaScript.

  • Can Validation Script Discern If a Field is Hidden?

    Hello All
    I use the validation script below to check for data in required fields on my form. I recently modified the form, changing three of the required fields from visible to hidden fields. The three fields are hidden unless the user makes a specific selection from a combo box. Then the three fields become visible, and if visible, should be required.
    I am stuck on how to tell the script to work as follows:
    1. If the three fields controlled by the combo box are visible, then they should be checked for the required data
    2. If the three fields controlled by the combo box are hidden, then the script should ignore checking them for the required data
    The three hidden/unhidden fields in the script are f5, f6, f7. Is there a way in the validation portion of the script to have it determine if the field is hidden or visible, and if visible check it for the required data?
    Thanks in advance for any ideas on this.
    var m = this.getField("txt_subject");
    var mysubject = m.value + " - Request Form Submission";
    var cType = "Reader";
    var cVersion = "< 7";
    var nWarning = 1;
    var cMsg1 = "This form cannot be submitted with your version of Acrobat Reader.";
    var cMsg2 = "You must use Acrobat Reader version 7 or higher.";
    // If Reader 6 or below is being used, display message telling user that "Email" and "Save Data" buttons don't work.
    if (app.viewerType == cType && app.viewerVersion == cVersion)
    app.alert(cMsg1 + cMsg2, nWarning)
    else {
              f1 = this.getField("txt_date");
              f2 = this.getField("txt_requested by")
              f3 = this.getField("txt_requested by phone");;
              f4 = this.getField("cbo_functional area");
      f5 = this.getField("cbo_dmm_ad_spon");
              f6 = this.getField("txt_buyer");
              f7 = this.getField("txt_buyer phone");
              f8 = this.getField("cbo_dmm_finan_spon");
      f9 = this.getField("tbx_coop_dmm");
              f10 = this.getField("tbx_load_dmm");
              f11 = this.getField("tbx_expected roi");
              f12 = this.getField("txt_event");
              f13 = this.getField("txt_start date");
              f14 = this.getField("cbo_am or pm");
              f15 = this.getField("txt_target audience");
                                if (f1.value == "")
                        {app.alert ('Please enter the date you are making this request".');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f1.setFocus();}
                        else if (f2.value == "Person making request")
                                  {app.alert ('The "Requested by" line cannot be blank. Please type the name of the person requesting this ad.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f2.setFocus();}
                        else if (f3.value == "Phone #")
                                  {app.alert ('Please type the phone number of the person requesting this project.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f3.setFocus();}
                              else if (f4.value == "Select a Functional Area")
                                  {app.alert ('Please select a Functional Area.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f4.setFocus();}
                               else if (f5.value == "Select a DMM")
                                  {app.alert ('Please select a DMM.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f5.setFocus();}
                                        else if (f6.value == "Buyer's name")
                                  {app.alert ('Please enter the name of the Buyer.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f6.setFocus();}
                        else if (f7.value == "Phone #")
                                  {app.alert ('Please type the Buyer\'s phone number.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f7.setFocus();}
              else if (f8.value == "Select a Financial Sponsor")
                                  {app.alert ('Please enter the financial sponsor.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f8.setFocus();}
                    else if (f9.value == "Enter dollars or a % amount.")
                                  {app.alert ('Please enter a dollar or percent amount for coop.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f9.setFocus();}
                   else if (f10.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter an amount for load.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f10.setFocus();}
                   else if (f11.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter the expected ROI amount in dollars.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f11.setFocus();}
                   else if (f12.value == "")
                                  {app.alert ('Please enter the Event name.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f12.setFocus();}
                    else if (f13.value == "")
                                  {app.alert ('Please enter a start date for this email.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f13.setFocus();}
                 else if (f14.value == "Select AM or PM")
                                  {app.alert ('Please select AM or PM for the Deployment time.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f14.setFocus();}
                    else if (f15.value == "")
                                  {app.alert ('Please describe the target audience for this email.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f15.setFocus();}
                 else
                                  // Email PDF.
                                  this.mailDoc(true, "[email protected]", "", "", mysubject);}

    I went through the form, and realized I am partially where I need to be: The required fields script checks the first of the three unhidden fileds, but then skips the other two.
    To recap, I have a combobox that, if the user makes a specific selection, that selection will make three hidden fields visible. When checking the fields on the form, the required fields script should then proceed as follows:
    1. If the three fields controlled by the combo box are visible, then they should be checked for the required data
    2. If the three fields controlled by the combo box are hidden, then the script should ignore checking them for the required data
    The three hidden  fields are:
    cbo_dmm_ad_spon
    txt_buyer
    txt_buyer phone
    When the three fields are visible the script checks the first one, cbo_dmm_ad_spon, but skips checking txt_buyer and txt_buyer phone, and instead goes on to the cbo_dmm_finan_spon field.
    I believe I've correclty implemented what AcroBishop recommended. Does anyone see where I may have gone wrong?
    var correctVersion = (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0);
    var m = this.getField("txt_subject");
    var mysubject = m.value + " - Email Request Form Submission";
    var cType = "Reader";
    var cVersion = "< 7";
    var nWarning = 1;
    var cMsg1 = "This form cannot be submitted with your version of Acrobat Reader.";
    var cMsg2 = "You must use Acrobat Reader version 7 or higher.";
    // If Reader 6 or below is being used, display message telling user that "Email" and "Save Data" buttons don't work.
    if (app.viewerType == cType && app.viewerVersion == cVersion)
    app.alert(cMsg1 + cMsg2, nWarning)
    else {
              f1 = this.getField("txt_date");
              f2 = this.getField("txt_requested by")
              f3 = this.getField("txt_requested by phone");;
              f4 = this.getField("cbo_functional area");
      f5 = this.getField("cbo_dmm_ad_spon");
              f6 = this.getField("txt_buyer");
              f7 = this.getField("txt_buyer phone");
              f8 = this.getField("cbo_dmm_finan_spon");
      f9 = this.getField("tbx_coop_dmm");
              f10 = this.getField("tbx_load_dmm");
              f11 = this.getField("tbx_expected roi");
              f12 = this.getField("txt_subject");
              f13 = this.getField("txt_objective");
              f14 = this.getField("txt_start date");
              f15 = this.getField("cbo_am or pm");
              f16 = this.getField("txt_target audience");
                                if (f1.value == "")
                        {app.alert ('Please enter the date you are making this request".');
               if(correctVersion) f1.setFocus();}
                        else if (f2.value == "Person making request")
                                  {app.alert ('The "Requested by" line cannot be blank. Please type the name of the person requesting this ad.');
               if(correctVersion) f2.setFocus();}
                        else if (f3.value == "Phone #")
                                  {app.alert ('Please type the phone number of the person requesting this project.');
               if(correctVersion) f3.setFocus();}
                              else if (f4.value == "Select a Functional Area")
                                  {app.alert ('Please select a Functional Area.');
               if(correctVersion) f4.setFocus();}
                    else if(f5.display == display.visible && f5.value == "Select a DMM") {
      app.alert ('Please select a DMM.');
               if(correctVersion) f5.setFocus();}
                         else if (f6.display == display.visible && f6.value == "Buyer's name")
                                  {app.alert ('Please enter the name of the Buyer.');
               if(correctVersion) f6.setFocus();}
                        else if (f7.display == display.visible && f7.value == "Phone #")
                                  {app.alert ('Please type the Buyer\'s phone number.');
               if(correctVersion) f7.setFocus();}
              else if (f8.value == "Select a Financial Sponsor")
                                  {app.alert ('Please enter the financial sponsor.');
               if(correctVersion) f8.setFocus();}
                    else if (f9.value == "Enter dollars or a % amount.")
                                  {app.alert ('Please enter a dollar or percent amount for coop.');
               if(correctVersion) f9.setFocus();}
                   else if (f10.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter a dollar amount for load.');
               if(correctVersion) f10.setFocus();}
                   else if (f11.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter the expected ROI amount in dollars.');
               if(correctVersion) f11.setFocus();}
                   else if (f12.value == "Launch? Expanded assortment? New sizes?")
                                  {app.alert ('Please enter the subject of this email.');
               if(correctVersion) f12.setFocus();}
                                     else if (f13.value == "Drive sales? Informational?")
                                  {app.alert ('Please enter the objective of this email.');
               if(correctVersion) f13.setFocus();}
                    else if (f14.value == "")
                                  {app.alert ('Please enter a start date for this email.');
               if(correctVersion) f14.setFocus();}
                 else if (f15.value == "Select AM or PM")
                                  {app.alert ('Please select AM or PM for the Deployment time.');
               if(correctVersion) f15.setFocus();}
                    else if (f16.value == "")
                                  {app.alert ('Please describe the target audience for this email.');
               if(correctVersion) f16.setFocus();}
                 else
                                  // Email PDF.
                                  this.mailDoc(true, "[email protected]", "", "", mysubject);}

  • Entering a Not To Exceed Validation Script

    I am looking for a validation script that will not allow a user to enter an amount that exceeds an amount they previously entered in another form box.  For example, if the entered a value of 25000 in a cell named 'SchValue01', they could not enter 25001 in the subsequent cell.  I would need them to be able to enter an amount equal to the first though.  Can anyone advise me?  Thanks.

    George, never mind.  I found a discussion where you helped someone with the same issue last March.  The solution worked perfectly!  Thanks!
    John O. Ross, Jr.
    President
    DooleyMack Constructors of South Carolina, LLC
    1114 Morrison Drive
    Charleston, SC 29403
    843-762-6690 (Office)
    843-762-6691 (Fax)
    843-408-8587 (Mobile)
    www.dooleymack.com <http://www.dooleymack.com/> 
    The information contained in this e-mail message and any attachments is confidential and privileged information intended only for the use of individuals or entities named above.If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail at the originating address.

  • Validation Pattern Message

    I want to script a Validation Error Message for a field that, on initialize, is in read-only mode. In Designer, when Type = "Read Only" the Validation Pattern and Validation Pattern Message are disabled. I can add script to define the pattern:
    Myfield.validate.picture = "text{99999-9999}|text{99999}";
    and trigger the validation:
    Myfield.validate.formatTest = "error";
    but how can I script the error message that the user sees? Doing the above generates a generic message "Myfield validation failed" but I would like the user to see a more description message, for example "Please enter a 5 digit or 5+4 digit zip code in the format 12345 or 12345-6789".
    It seems silly that I add this field property at design time for a field that is NOT read-only, but not for one that toggles on/off from read-only to enabled. Any suggestions?

    Hi
    You can use the following:
    tfPostalCode.validate.picture.value = "9999";
    tfPostalCode.validate.message.formatTest.value = "An Australian Post Code must be a four digit number!";
    Howard

  • Validation error message in popup

    Hello,
    I want to ask if it's possible to display validation error message in a popup window/box? I have searched the forum but couldn't find specific solution.
    Thank you in advance.

    Hi,
    Edit your label template as above. Remove javascripts mentioned above if you edit same template.
    Include this javascript
    <script type="text/javascript">
    $('#errdialog').find('ul').append($('<li/>',{text:'#ERROR_MESSAGE#'}));
    </script>Then in page where you like use this place to page HTML header
    <script type="text/javascript">
    $(function(){
    if($('#errdialog').find('li').length>0){
      $('#errdialog').dialog({
       modal:true,resizable:false,
       buttons:{"Ok":function(){$(this).dialog("close")}}
    </script>And to page Header Text
    <div id="errdialog" title="Validation Error !" style="display:none"><ul/></div>Regards,
    Jari
    Edited by: jarola on Nov 4, 2010 10:48 AM
    And remember change item labels use this custom template
    Edited by: jarola on Nov 4, 2010 10:49 AM
    script tag included

  • Error Validating Script Logic

    Hello,
    I'm new to BPC, and so i'm having some problems in debugging this error.
    When i do validation script of this code
    *WHEN AMOUNTTYPE
    *IS "1"
      *REC (EXPRESSION= (%VALUE%)+200)
    *ENDWHEN
    *COMMIT
    "i get the follow message Invalid End/endWhen"
    I don't know what i'm doing wrong. Someone can help me.
    Regards,
    Gomes

    *WHEN ACCT_C.ID-- Dimention name is missing if you don't have xdim in the top.
    *IS "1"
    *REC(EXPRESSION= (%VALUE%)+200) -- Take out space after REC -- This will take out your when and end error. But new error will be shown because there is no dimention at the type.
    *ENDWHEN
    *COMMIT

  • Validation Script in Site studio

    Hi,
    I have created the Custom element form for date, I need to validate the data entered in contributor mode via Validation Script.
    I have created the Validation Script but I'm not able to read the parameter i.e. date.
    Returning true or false from the validation script is handling the validation. Retuning "false" shows one pop up .. that is ok. but how can we put user defined message in that pop up.
    So I have two queries:
    1. Reading the parameter in validation script.
    2. Putting user defined message in the pop up.
    Thanks in advance,
    MAK

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • How to get the handle of the Validation Failure Message Popups.

    Hi,
    I'm using Jdev 11.1.2.0
    I have added validation rule(less than system date) and failuremessage("date should not after currentdate") on the date field in EO.
    when I enter greated than the sysdate in date field in page, I'm getting validation failure message in a popup with ok button. its working good.
    but when i click on the popup ok button, the focus should go the date field again and it is higlighted.
    So, how to get the handle of the popup's ok buton? and how to highlight the datefield after clicking the popup's ok button?
    Any suggestion would be appreciated.
    thank you.

    if i understood correclty means,
    i hope that, error popup is provided by framework.. how could be possible? to catch the error popup ok button.
    am not well aware of catching the error popup which is provide by framework..
    but i had answer for your part of the question,
    if the condition go off false means you force the cursor into date field. this is can be done using 'javascript'. unless using script you can't do that. ADF doesnt provide any force focusing feature.
    please google how to focus the field.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    http://lspatil25.blogspot.in/2012/04/adf-default-cursorfocus-to-input-field.html
    http://donatas.nicequestion.com/2012/04/component-to-set-initial-focus-in-adf.html

  • Customd validation script syntax

    Hi,
    I use simple acroform created by Acrobat 9 pro with text field. On the text field properties -> validate tab I had put some custom javascript but it has never executed. Can you tell me what must be exact syntax for this script is it suppose to return boolean value or something ?

    There is no return code, but you may need a custom keystroke and format scripts to support the validation script.
    The validation script for inputting the first and last name with each name must start with a capital letter followed by one or more lower case letters and separated by a blank character:
    this.getField(event.target.name).fillColor = color.transparent; //clear field background
    // create RegExp string for required format
    // First and last names begin with one capital letter followed by lower case letters
    var re = /^[A-Z[a-z]+ [A-Z][a-z]+$/;
    // use RegExp test to see if format rule followed
    if (re.test(event.value) == false) {
    app.alert("That does not appear to be a valid name. I need first and last name.", 1, 0); // error message
    // other error processing options
    this.getField(event.target.name).fillColor = color.red; // use red to highlight problem field
    // event.value = ''; // optional to force complete reentry if an error
    app.beep(1); // beep sound
    } // end validation test

Maybe you are looking for

  • Firefox will not display certain features of websites in windows 8.1

    I've upgraded to windows 8.1. Installed Firefox (now ver. 26) right away. I go to the same websites to pay bills, do work stuff etc for the past few years. Those websites work fine most of the time. RANDOMLY (at least to me) 2 websites have been givi

  • Images with hyperlink in javascript - help needed

    Hai, I am having two hyperlinks say, "Good Morning" and "Good Evening". When I am clicking "Good Morning", a small arrow or a picture should display with the hyperlink. When I am clicking "Good Evening" this one should have the small arrow or a pictu

  • How to build a custom movie clip that will be used as a cell renderer for column in a grid ?

    i want to build a datagrid that shows a picture and underneath it a name. the problem is i dont want to see all of the pictures, but all the pictures that have certain requirements, so i cant just make one movie clip that includes all the pictures an

  • Buffer acquisitio​n with NI-IMAQ 1394

    I would like to be sure that the acquisition frame rate is constant despite some image processing. It's why i need to use a buffer (with more than one image) as it seems possible to do with standard NI-IMAQ. I didn't find such options with IMAQ 1394

  • Basic auth in proxy server breaks managed server form auth

    Hi, I have a proxy server configured in front of 2 managed servers. The managed servers have secure pages and are using form auth and the proxy server is working properly. In other words, I point my browser at the proxy and I end up being services by