Web Form Validation Message Language Setting at Runtime when work in multi lingual environment

Business Catalyst use the default culture language to display web form validation message.
When we are in multi lingual environment and not using subdoamin to handle multilingual sites, we found that the validation message did appear in the default culture setting. To make this work, we need to add the below script in our template.
<script type="text/javascript">
$(document).ready(function(){               
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.src= '/BcJsLang/ValidationFunctions.aspx?lang=FR';
script.charset = 'utf-8';
script.type= 'text/javascript';
head.appendChild(script);
</script>
Assuming the template is in french. You can change the lang parameter in the script according to your language.

After user 1 submits the page, it might not even be committed, so there is no way to have the pending data from user1 seen by user2.
However, we do have a new feature in ADF 11g TP4 that I plan to blog more about called Auto-Refresh view objects. This feature allows a view object instance in a shared application module to refresh its data when it receives the Oracle 11g database change notification that a row that would affect the results of the query has been changed.
The minimum requirements in 11g TP4 to experiment with this feature which I just tested are the following:
1. Must use Database 11g
2. Database must have its COMPATIBLE parameter set to '11.0.0.0.0' at least
3. Set the "AutoRefresh" property of the VO to true (on the Tuning panel)
4. Add an instance of that VO to an application module (e.g. LOVModule)
5. Configure that LOVModule as an application-level shared AM in the project properties
6. Define an LOV based on a view accessor that references the shared AM's VO instance
7. DBA must have performed a 'GRANT CHANGE NOTIFICATION TO YOURUSER'
8. Build an ADF Form for the VO that defined the LOV above and run the web page
9. In SQLPlus, go modify a row of the table on which the shared AM VO is based and commit
When the Database delivers the change notification, the shared AM VO instance will requery itself.
However that notification does not arrive all the way out to the web page, so you won't see the change until the next time you repaint the list.
Perhaps there is some way to take it even farther with the active data feature PaKo mentions, but I'm not familiar enough with that myself to say whether it would work for you hear.

Similar Messages

  • Localization of form-validation messages in WebDynpro

    Hello all,
    We're trying to solve this issue:
    How to get localized (e.g. Slovak) messages which are result of form validation?
    Situation: there is a context atribute, it's type is a simple type and this attribute is bound to an UI input element. When the form is submitted, every such attribute it's checked against it's simple-type.
    So the question is how to get these messages - when validating automatically - for example:
      "Enter the value in the format 25.11.1987"
    in defined language? Is there a way how to configure/translate them?
    Thanks a lot!!
    Rado

    Hi Radoslav,
    You need use Message Pool for showing any data in the WEB Dynpro Applicaiton screen for intenationalization.
    Please refer to this link might help in you scenario :
    [Developing International Web Dynpro Applications|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/internationalization%20of%20web%20dynpro%20applications.pdf]
    Hope it helps
    Regards
    Arun

  • Planning Web Form status message.

    Is there a way to display a custom status message in web form. We are trying to add some resources to a division using a business rule from a web form and have a requirement to display a warning message if the resource already belongs to the division.
    Appreciate any suggestions ?

    If it is already there, then I'm assuming that you'll have data at a particular intersection. (if that is correct) then use @RETURN i
    if (division->some member <> #Missing)
    Return the message you want to display
    else
    continue the calc
    end if
    An example is here Oracle - Hyperion Labs......: @RETURN - Planning Business Rule validation function and @RETURN
    Regards
    Celvin
    http://www.orahyplabs.com

  • E-mail signup web form - Error message

    My index page has a newsletter signup web form. The workflow attached works, but when a user enters their e-mail and clicks "submit" they get an error message. I used a bc gurus template and this is the one thing I cannot find, how to change the link of the submit button or fix the confirmation. url is thesoleconnectionllc.com
    I'm stumped, help would be greatly appreciated!!
    Thanks

    It is a module inserted basic implementation.
    It allows for drag and drop ordering which will update the form and any changes and new additions will update the form - which is what is happening in your case.
    ID's etc changing have no baring on what is happening.
    But what your saying... I am not sure your seeing what your saying. Even in this case I do can not replicate what your doing.
    This is a test form:
    The ID is - CAT_Custom_19956061
    I can edit auto responder, I can add new fields, I can save and update the form in the admin, go into another part of the admin and come back - the ID for this field NEVER changes. The Script ID etc in the html of course updates if I make changes this never changes.
    The ONLY way this changes is if I delete and remake the field.
    So you need to make a BC support ticket. Your either doing something critical like removing and re-adding the form fields and not stating that here or, for what ever reason on that site only there is an issue.

  • Web Form Error Message

    I have a very large collection form although it only has 14 "Required fields
    When I press submit, I get a new page with the following message -
    ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
    Name and email are definitely there, and I have tested every field and submitted data.
    However if I enter just my name and email address, then all the other required fields are ignored.
    I cut down the code to only include the fields that are important to check - same result
    here it is
    <script type="text/javascript" src="http://propertywealthpartners.businesscatalyst.com/CatalystScripts/ValidationFunctions.js"></script>
                <script type="text/javascript">
    //<![CDATA[
    var submitcount75734 = 0;function checkWholeForm75734(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name");if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name");if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.HomeAddress) why += isEmpty(theForm.HomeAddress.value, "Home Address");if (theForm.HomeCity) why += isEmpty(theForm.HomeCity.value, "Home City");if (theForm.HomeState) why += isEmpty(theForm.HomeState.value, "Home State");if (theForm.HomeZip) why += isEmpty(theForm.HomeZip.value, "Home Zipcode");if (theForm.HomeCountry) why += checkDropdown(theForm.HomeCountry.value, "Home Country");if (theForm.CellPhone) why += isEmpty(theForm.CellPhone.value, "Cell Phone Number");if (theForm.CAT_Custom_19946743) why += isEmpty(theForm.CAT_Custom_19946743.value, "Your Age");if (theForm.CAT_Custom_19946749) why += checkDropdown(theForm.CAT_Custom_19946749.value, "Marital Status");if (theForm.CAT_Custom_19946750) why += checkDropdown(theForm.CAT_Custom_19946750.value, "Living Arrangements");if (theForm.CAT_Custom_19947405) why += isEmpty(theForm.CAT_Custom_19947405.value, "What would you like to discuss at our first meeting?");if (theForm.CAT_Custom_19947406) why += isEmpty(theForm.CAT_Custom_19947406.value, "What would you like to achieve in the next 5 years.");if (theForm.CAT_Custom_19948331) why += checkDropdown(theForm.CAT_Custom_19948331.value, "Please read and consent to our use of your information as per our Privacy Statement");
    if(why != ""){alert(why);return false;}if(submitcount75734 == 0){submitcount75734++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
    //]]>
    </script>
    I checked it against another smaller form, which is working but can't see any difference between the first few lines and last lines.

    It is a module inserted basic implementation.
    It allows for drag and drop ordering which will update the form and any changes and new additions will update the form - which is what is happening in your case.
    ID's etc changing have no baring on what is happening.
    But what your saying... I am not sure your seeing what your saying. Even in this case I do can not replicate what your doing.
    This is a test form:
    The ID is - CAT_Custom_19956061
    I can edit auto responder, I can add new fields, I can save and update the form in the admin, go into another part of the admin and come back - the ID for this field NEVER changes. The Script ID etc in the html of course updates if I make changes this never changes.
    The ONLY way this changes is if I delete and remake the field.
    So you need to make a BC support ticket. Your either doing something critical like removing and re-adding the form fields and not stating that here or, for what ever reason on that site only there is an issue.

  • Why is HTML showing in the form validation message?

    Here is what is showing when I use server side form validation.
    <ul><li>You must select a location </li></ul> Go <a href="javascript:history.back()">back</a> and correct the problem.
    Obviously, the HTML tags are not supposed to be shown.  What's going on here?  I just upgraded to CF9 on Linux and this started happening.  Any ideas?

    It's a standard CF server-side form validation and looks like this on the form:
    <input type="hidden" name="somefield_required" value="some field is a required field">
    When they submit the form (and didn't enter something for somefield), the automatic message comes up.  The formatting of the message is messed up on CF9.  I've been using this type of server-side validation for years (probably since CF5) and have never seen this problem before.
    Actually, this works fine on another server (CF 9,0,0,251028) but on CF 9,0,1,274733 it is having this issue.  Both are running CF Enterprise on Linux.
    Error message is supposed to look like this:
    Form entries are incomplete or invalid.
    some field is a required field
    Go back and correct the problem.
    The messed up message looks like this:
    Form entries are incomplete or invalid.
    <ul><li>some field is a required field</li></ul> Go <a href="javascript:history.back()">back</a> and correct the problem.

  • Search Form Validation Message Customization

    Hi -
    In the Advanced Search form when the user enters 'non-numeric' value in a numeric field the application throws a message like "asdasd in MyNumField is not a number" when the Find button is clicked.
    Is it possible to display the field's Label value instead of the name?
    Say I have set "Req Quantity" as MyNumField's label how can I display
    "asdasd in Req Quantity is not a number"
    Thanks in advance for your time,
    Saran

    Saran,
    You can do this by using a custom property on the ViewObject attribute:
    - open the ViewObject editor
    - select the attribute
    - click the "Custom Properties" tab
    - enter "PROMPT" as the name and the desired prompt as the value
    - click Add button
    - click OK
    Steven Davelaar,
    JHeadstart Team.

  • Discount codes for web forms

    Question:
    I have been using two web forms to allow access to a secure zone. Of them, one is for the trial user access and another is for the paid user access.
    The problem is: Can I use discount codes for the secure zone access? I can't see the way of integrating eCommerce discount codes with web forms.
    Answer:
    Discount codes don't actually work with secure zone access since you have to accept payment through web forms. However, I hired an outside developer to write some code for me, which I don't mind sharing:
    Put this in the Head of your document:
    <script type="text/javascript">
    function refreshAmountToCharge() {
    var frm = document.forms[0];
    var defaultAmountToCharge = 100;
    var couponCode = "ABC123"; // A tribute to Michael Jackson...
    var percentOff = 50;
    var couponCode2 = "DISCOUNT2";
    var percentOff2 = 67;
    var couponCode3 = "DISCOUNT3";
    var percentOff3 = 99;
    var couponCode4 = "DISCOUNT4";
    var percentOff4 = 75;
    /* Fixed amount coupon c*/
    var fixedCouponCode1 = "FIXED1";
    var fixedAmount1 = 20.00;
    var fixedCouponCode2 = "FIXED2";
    var fixedAmount2 = 6.00;
    var fixedCouponCode3 = "FIXED3";
    var fixedAmount3 = 7.00;
    var amountToCharge = defaultAmountToCharge.toFixed(2);
    if (frm.couponCode.value.toUpperCase() == couponCode)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode2)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff2 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode3)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff3 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode4)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff4 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode1)
      amountToCharge = (defaultAmountToCharge - fixedAmount1).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode2)
      amountToCharge = (defaultAmountToCharge - fixedAmount2).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode3)
      amountToCharge = (defaultAmountToCharge - fixedAmount3).toFixed(2);
    frm.Amount.value = amountToCharge;
    // ----------- End Coupon Code Javascript ---------------------
    </script>
    Then, you'll need a Coupon Code field in your form:
    <div class="item">
        <label for="couponCode">Coupon Code</label><br />
        <input type="text" name="couponCode" id="couponCode" class="cat_textbox" />
        <a href="javascript:refreshAmountToCharge()">Update</a>
    </div>
    That's it. Let me know if you have any questions. You can set multiple codes, either percentage based or fixed amount. Experiment with it to make sure it works as expected.

    This is great Mario! Thanks so much for sharing. It works very well.
    One thing I want to add is a validation for the coupon update action. If the coupon is no longer valid or entered incorrectly, a message would be great, because the person might no even notice the fact that the amount did not change even though they think they entered a valid discount code.
    Sean

  • Error shown in Web form doesnt pop up in Smartview

    Hi
    I have a web form where users enter data in runtime prompts and there is a validation which prompts an error if the user selects an year less than the current forecast year. This error is hanlded through a script and @return function.
    Th errors popsup when the user selects the year in webform but if the same form is opened in smartview, and the user selects an year less than the forecast year, the error is not popping up.
    Please suggest
    Thanks

    Are you still getting the error message? Can you see the error in Planning Job Console?
    Regards
    Celvin
    http://www.orahyplabs.com

  • Validator Message Generation Problem

    I have a number of input fields and drop downs in a form, all of which have validators attached to them.
    When the form is submitted, the validation messages are generated in no particular sequence, and also I don't get all the validator messages at once. I get a few, fix them then get some more again.
    Would appreciate insight into 'in what sequnce are the validator messages generated' if there are multiple validators in a form. How can I control the sequence in which these messages are displayed, and why are'nt all the validator messages displayed all at once in a form?
    Regards
    Haroon

    Hi Haroon,
    The situation in which all the validator messages were not displayed is when the required property for a particular field is set to true. The validator messages for all the input fields before this are displayed but none of the messages for the fields appearing after the field for which the required property is set to true.
    One of the options that could be tried is to have inline message component for the input fields which would make it easier to identify the validator messages.
    Hope this helps
    Cheers
    Giri

  • How to send a receipt when using a web form for payment

    I have a site on which people sign up for classes (events) through a web form. I have set this up using a custom form in which the Amount field is populated using javascript, depending on which class they select from a drop down.
    Is there a way to send the client a receipt for the transaction? Would this be done within BC or would it be done within the payment gateway? (Authorize.net, in this case)
    Thanks for any help.

    Hi - I have a similar problem. I found I can send a receipt using sendinvoice=true&amp in the form action, but it uses the default invoice layout and shows GST to be $0, when it should be 10% of the class(event) fee. I can't modify the invoice as it is setup just right for out products, which are purchased through shopping cart. Any ideas on ow to work around this? Any thoughts would be very appreciated.

  • Help with java form validation script needed

    Please, check my source text. I'm trying to get some simple
    alerts to prevent my form from submitting if vital fields are
    incomplete but the fom submits no matter what. My eyes are blurry
    from trying to figure this out!
    http://www.creativerealtynetwork.com/listing.html
    Thank you!

    here is the code for the OK btn
    on (press)
    ErrorMessage = "";
    name = Edit1;
    if (name == "")
    ErrorMessage = "Enter your Name";
    } // end if
    phone = Edit2;
    if (phone == "")
    ErrorMessage = "Enter your phone";
    } // end if
    email = Edit3;
    if (email == "")
    ErrorMessage = "Enter your email";
    } // end if
    if (email.indexOf("@", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    if (email.indexOf(".", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    contact = Edit4;
    if (contact == "")
    ErrorMessage = "Enter your message";
    } // end if
    message = "mailto:[email protected]?subject=Thank you for
    contacting
    us&body=Form contents%0A";
    message = message + "name: " + name + "%0A";
    message = message + "phone: " + phone + "%0A";
    message = message + "email: " + email + "%0A";
    message = message + "contact: " + contact;
    if (ErrorMessage != "")
    getURL(message, "_self");
    } // end if
    I get a error message only for the email if not filled
    correctly,
    thank you
    "ldlouis" <[email protected]> wrote in message
    news:gp9qit$4ad$[email protected]..
    > Hi all
    >
    > I news using flash 8 I'm trying to build a form
    validation and I cant get
    > it to work.
    >
    > here is a copy of the fla file
    >
    >
    http://www3.sympatico.ca/ralix/test1.fla
    >
    > Thank you

  • Accordion with integrated form validation

    I am working on another widget. It's based on Spry's
    Accordion and it have
    built-in form validation. You can see it in action here:
    http://www.massimocorner.com/libraries/spry/accordionform/sample.htm
    Massimo

    here is the code for the OK btn
    on (press)
    ErrorMessage = "";
    name = Edit1;
    if (name == "")
    ErrorMessage = "Enter your Name";
    } // end if
    phone = Edit2;
    if (phone == "")
    ErrorMessage = "Enter your phone";
    } // end if
    email = Edit3;
    if (email == "")
    ErrorMessage = "Enter your email";
    } // end if
    if (email.indexOf("@", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    if (email.indexOf(".", 0) < 0)
    ErrorMessage = "Enter valid email";
    } // end if
    contact = Edit4;
    if (contact == "")
    ErrorMessage = "Enter your message";
    } // end if
    message = "mailto:[email protected]?subject=Thank you for
    contacting
    us&body=Form contents%0A";
    message = message + "name: " + name + "%0A";
    message = message + "phone: " + phone + "%0A";
    message = message + "email: " + email + "%0A";
    message = message + "contact: " + contact;
    if (ErrorMessage != "")
    getURL(message, "_self");
    } // end if
    I get a error message only for the email if not filled
    correctly,
    thank you
    "ldlouis" <[email protected]> wrote in message
    news:gp9qit$4ad$[email protected]..
    > Hi all
    >
    > I news using flash 8 I'm trying to build a form
    validation and I cant get
    > it to work.
    >
    > here is a copy of the fla file
    >
    >
    http://www3.sympatico.ca/ralix/test1.fla
    >
    > Thank you

  • Inserting table in web form/ Inserting multiple cells in a single row

    Dear Mr Johnson,
    Thanks for your early reply.
    I am rather disappointed .....as I need to distribute my form urgently with a table insertion capability.
    I had purchased Adobe webform central subscription with the idea that a paid subscription will fetch me the full editing capability of the Adobe form central web forms.
    Please inform me as to when this vital update regarding the table insertion/ multiple cells insertion in a single row capability (update) will be functional and available for our use as today is 26th of January, 2013.
    Kindly reply ASAP.
    Thanks,
    with kind regards,
    Dr Ali

    See this thread from two days ago where Randy Swineford of Adobe says that it is expected to be added at the end of January: http://forums.adobe.com/thread/1140470?tstart=0
    I don't know if it will include a table tool.

  • Web form editor in Oracle UCM

    Hi,
    I am using oracle UCM repository for the content management and its inbuid web form editor for creating HTML content.
    but when i am trying to insert image, it gives some 'server didn't send back a proper XML response' error.
    can anybody please help me on the same.

    See if this helps:
    http://cksource.com/forums/viewtopic.php?t=6642&f=5

Maybe you are looking for