Readonly and form submission

Hi,
I have a real problem with form submissions and readonly text fields. The problem occurs when I have a readonly text field and a field which is requirted to have a value. An example:
<f:view>
   <h:form>
      <h:inputText
         id="test"
         value="#{Test.param1}"
         readonly="true"/>
      <h:inputText
         id="test2"
         value="#{Test.param2}"
         required="true"/>
      <h:inputText
         id="test3"
         value="#{Test.param3}"/>
      <h:commandButton
         action="#{Test.doTest}"
         value="Ok"/>     
   </h:form>
</f:view>When showing this form the first time there will be a value in the text field with id test. When submitting this form and the form isn't correctly validated the user will be returned to the same page BUT there will be no value in the text field with id test but all other values, that were filled in, will be displayed. Is there a way around this so a value in the read only can be redisplayed even thugh the form isn't correctly validated?
Thanks in advance
Message was edited by:
klejs

Hi,
Balus is right, they are already set and the bean is in a request scope.
The backing bean looks something like this:
public class Test {
   private String param1;
   private String param2;
   private String param3;
   public String getParam1() {
      return param1;
   public void setParam1(String param1) {
      this.param1 = param1;
   public String getParam2() {
      return param2;
   public void setParam2(String param2) {
      this.param2 = param2;
   public String getParam3() {
      return param3;
   public void setParam3(String param3) {
      this.param3 = param3;
   public String prepareUpdate() {
      MyClass mc = service.getMyClass(someId);
      this.param1 = mc.getParam1();
      this.param2 = mc.getParam2();
      this.param3 = mc.getParam3();
      return "success";
   public String doTest() {
      return "success";
}The prepareUpdate() method is called to initialize the backing bean and then the jsp page is shown and my problems begin.
Thanks in advance

Similar Messages

  • Pre-populated PDF forms and form submission

    Ok, I must be blind or something, I've searched for answers to this question, and see unanswered posts around the web, and if there are answers, they don't help. Perhaps if someone can answer this, it will help many others as well:
    I've read about how FDF/XFDF (the older method) can be sent to the client side, which will open the specified PDF file (as specified using the "/F" flag in the FDF) and load the fields values also specified in the FDF (using the /FIELDS and /T flags, etc.). I was recently told that XFA is the new format, but reading the docs is not clear to me.
    QUESTION: What is the proper method to pre-populate the FIELDS of a PDF form (created using LiveCycle Designer, or Acrobat, or whatever) that gets sent to a client browser? Changes to this pre-populated data gets re-submited via an HTTP post button (or whatever) back to the server.
    Note: At the server backend, say using C# in Visual Studio 2005, I can simply read the posted HTML form and store the fields values into a database; However, I need to be able to pre-populate these PDF forms with selected patient names, etc., so that healthcare officials can complete them more easily BEFORE they get posted back to the server. These pre-populated fields (some of them anyhow) must STILL be editable (not flatten to static text or something).
    Thanks.

    From your description, is doesn't sound like it has anything to do with the virtual enviroment. It does sound like the forms simply need to be Reader-enabled. This allows Reader to save filled-in forms, which is necessary when you want to email them. If all of your users can use Reader 11, the forms do not need to be Reader-enabled since it is capable of saving non-enabled form. To enable a form in Acrobat 10, select: File > Save As > Reader Extended PDF > Enable Additional Features

  • Browser window checking and form submission

    Hi,
    If I know the browser window name is it possible to write an application which can execute the javascript functions within the webpage?
    This application needs to be a stand alone one.
    If someone has done something like this please do let me know. any code samples would be appreciated.
    Thanks
    Naag

    Hi,
    One possible reason could be the Aero Peek feature of Windows kicking in. The Windows key + spacebar is the usual shortcut key for Aero Peek, but there could be other shortcut keys.
    [http://windows.microsoft.com/en-PH/windows7/products/features/peek Peek]

  • SSL certificate - securing web form submission - privacy, usability and Adobe's UX design ethos

    Hi,
    (newbie alert)
    I'm just learning BC and it doesn't seem too bad. One problem I have is the shared certificate and I wonder if there are plans to address this shortcoming in the short term?
    Privacy is a growing concern in Australia (in addition to specific new legal requirements). The web forms that we will use are likely to contain personal information. These should be secured by a certificate.
    If you accept that most end users are not tech-savvy then you might agree with the premise that "Users should not see different domain names in the address bar when submitting personal information".
    Switching domains, multiple times for web forms submission or ecommerce, is in my view, a pretty simplistic and business-centric (as opposewd to user-centric) design approach to the task.
    How does Adobe explain their committment to the end-user and their system design decisions regarding the shared certificate situation? I'd be interested to know if Adobe believes this is a "good-enough" solution based on a range of factors, especially expediency for Adobe. Or are there concrete plans to "fix" this (in my view) sub-optimal situation in the near-term?
    Happy to discuss further.
    Cheers
    BCStarter

    Hey there,
    It is an integral part of how the system works in terms of the system itself and the business model, So it wont be any way to change it any time soon without a big change from BC on how BC works.
    Web forms in BC can be secured with a certificate. Many systems change domain for secure subdomains etc, most people are not tech savy and they actually do not even notice things like change of domain, most actually do not check the SSL certificate. You can even just put graphics of lock symbols and say your form is secure, even when it is not and people fill it in. (Studies have shown this)
    With many eCommerce sites, booking sites etc under my belt, with good UI Design and site flow and good information about being secure etc to the end user - No issues with clients and clients happy with the sales they get through. The domain thing has never been an issue.
    I seen people complain about it on the forums before but looking at the sites, its the user experience flow of the site itself being the primary problem.
    Yep, nice if it was all under the same domain, but this will not likely change in BC especially any time soon, but a site built well - this really does not matter that much, Google for example even offers anaytlitcs settings to work cross domain so they fully well know things like this work on modern websites.

  • Issue while starting a workflow using a form submission cq5

    Hi,
    I have followed the below mentioned tutorial and completed it.
    http://dev.day.com/docs/en/cq/current/workflows/create-models.html#par_reference
    Once done, I did try to start the workflow using a normal form submission, by giving workflow name in the "Start Workflow" box.
    Once clicked it will send the notification to my inbox, and when I double click, the form 1 will be displayed. Once submitted form two will be displayed.
    But when I submit the form 2, it thorws the below exception.
    But when I start the same workflow using the sidekick, It works perfectly fine. I am guessing that the {payload}.html is not getting set when the WF is initaited by a form submission.
    Could you please help with this. Thank you !
    Exception
    Not Found
    Cannot serve request to /content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480595_ 27.html in org.apache.sling.servlets.get.DefaultGetServlet
    Request Progress:
          0 (2013-02-21 17:38:19) TIMER_START{Request Processing}
          0 (2013-02-21 17:38:19) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
          0 (2013-02-21 17:38:19) LOG Method=GET, PathInfo=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/13614 48480595_27.html
          0 (2013-02-21 17:38:19) TIMER_START{ResourceResolution}
          1 (2013-02-21 17:38:19) TIMER_END{1,ResourceResolution} URI=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480 595_27.html resolves to Resource=JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27
          1 (2013-02-21 17:38:19) LOG Resource Path Info: SlingRequestPathInfo: path='/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/13614484 80595_27', selectorString='null', extension='html', suffix='null'
          1 (2013-02-21 17:38:19) TIMER_START{ServletResolution}
          1 (2013-02-21 17:38:19) TIMER_START{resolveServlet(JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27)}
          1 (2013-02-21 17:38:19) TIMER_END{0,resolveServlet(JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
          1 (2013-02-21 17:38:19) TIMER_END{0,ServletResolution} URI=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480 595_27.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
          1 (2013-02-21 17:38:19) LOG Applying Requestfilters
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
          1 (2013-02-21 17:38:19) LOG RedirectFilter did not redirect (MobileUtil.isMobileResource() returns false)
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter
          1 (2013-02-21 17:38:19) LOG Applying Componentfilters
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
          1 (2013-02-21 17:38:19) TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
          1 (2013-02-21 17:38:19) LOG No renderer for extension html
          1 (2013-02-21 17:38:19) LOG Applying Error filters
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
          1 (2013-02-21 17:38:19) TIMER_START{handleError:status=404}
          1 (2013-02-21 17:38:19) TIMER_END{0,handleError:status=404} Using handler /libs/sling/servlet/errorhandler/404.jsp
          2 (2013-02-21 17:38:19) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@88fc5d1), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@170420bb), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@1000e0cb), serializer=Config(type=htmlwriter, config={}))}
          2 (2013-02-21 17:38:19) TIMER_END{2,Request Processing} Dumping SlingRequestProgressTracker Entries
    ApacheSling/2.2 (Day-Servlet-Engine/4.1.24, Java HotSpot(TM) 64-Bit Server VM 1.7.0_07, Windows 7 6.1 amd64)

    Hi chamila,
        I never tried the example. Exception is not clear. Could you please post more stack trace from log files.
    Thanks,
    Sham

  • Muse CC and Form Catchpha

    Hi all,
    Apologies for the rant in advance, but can anyone at Adobe tell me what the point is in allowing forms to be used outside of Business Catalyst only to keep the use of Form Catchpas for BC customers only??? This restriction really means this feature is yet again useless. None of my clients wish to host with BC as they have hosting elsewhere and want to keep it that way. I really feel this is an underhand way to encourage use of the Adobe BC service. I pay my recurring fees to Adobe for thier software so why restrict it with such stupid limitations.
    Any thoughts are appreciated.
    Many thanks,
    Tom

    Please try it on a site before declaring it useless.
    While captcha support is not available, if SQLite is available Muse will limit the form submissions that can be submitted from a single IP address in a short period of time, thus substantially reducing the likelihood and scale of spam form submissions. The FAQ here <http://forums.adobe.com/docs/DOC-3581> provides more information about the new forms functionality, including how to easily check whether your hosting currently has SQLite available.
    Yes, there is no captcha support. Captcha support requires some degree of image processing on the server (to generate the captcha image). This level of image processing is not available as part of the typical PHP installed with default hosting configurations.
    We're frankly walking a tightrope. We're doing our best to provide a forms solution that works on the vast majority of hosting providers, avoids (or at least limits) spam submissions, requires no server-side configuration by the user (in most cases), minimizes the code installed on your server (to minimize the security risks and maintenance requirements inherent in running any code on a server) and avoids any per form or per form submission costs to Adobe (which would in turn require us to, in some way, have an additional charge for the use of forms in order to cover that cost).
    If the cost problem isn't clear, let me explain further. An individual Muse user may produce and maintain 1 website or hundreds of websites. These websites can continue to be live online long after the Muse subscription has expired. (The websites remain online as long at the hosting provider is paid.) In the future if we provide a forms solution that requires Adobe to maintain servers to manage accounts, process form submissions, send e-mails and provide customer support for that service, the costs associated with that would be incurred per website, per form and/or per form submission and therefore would require us to charge separately from the subscription cost of Muse.
    Yes we're part of "a big company" and yes we're interested in making a profit, but ultimately we're just a group of people that take a great deal of pride and satisfaction in creating tools and solutions that enable you to be more productive and possibly achieve things you otherwise would be unable to do. And, if we've done our job well, we'll all have fun along the way.

  • My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this: "Contact Form" has a new form submission.

    My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this:
    "Contact Form" has a new form submission.

    What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
    Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
    Thanks,
    Sanjit

  • Create a JSON file from a form submission

    Hi there, I am trying to create my first BC app but struggling to find a solution to create some data inside BC, I need to create a JSON file from a form submission that will be used as feed for my app.
    How I see it working:
    - Form submits details { Name, Email, Phone Number and a Date.} to a JSON file.
    - My app.js will read the JSON file and populate the content on a graph.
    Any other ideas will be much appreciated.
    I don't know if BC is has another way to host data from an app! but if you know pleas share.

    Hi Liam I must be explaining it wrong then, I am creating a BC App not an WebApp, At the moment I have my BC App generating the WebApp but once its done the JSON is generated somewhere in BC where i cannot fetch I tried using some directories to fetch it.
    I created the app this way:
    function tryWebAppCreate(data, xhr) {
        $.getJSON("booking-data/webapp.json")
            .done(function(webAppJsonDescriptor) {
                createWebApp(WEBAPP_NAME, webAppJsonDescriptor.webAppCustomFields, webAppJsonDescriptor.webAppSampleData, loadTeamMembers);   
            .fail(function() {
                systemNotifications.showError("Could not load webapp definition file");
    But now to fetch it i tried: ( replacing the braces with appropriate IDs)
    /api/v2/admin/sites/[site id]/webapps/[app id]/webappp.json
    My 3rd party App will connect to my BC App and from my app i have another call to send the JSON info.
    I just cant call it! maybe if you know how please let me know.

  • Struts portlet page going out of context during form submission

    I?m working on the Weblogic 8.1 version and have a struts portlet inside a portal alongwith the other portlets. When a html link is used, the jsps remain inside the portal context but during a form submission, the request is processed and the jsp is displayed out of the portal as a separate application.
    I?m using the request.getContextPath() in the jsp but still it is not workin.
    Is there anything I should be modifying or that has to make it work?
    What are the changes (if any) has to be made for the form submission in a jsp with regard to a Struts Portlet such that the form submission stays inside the parent portal context.

    The Images can be accessed from modified location
    PersonalDataPortlet-In-Portal.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107617&ver=0&rndm=1085565825500&name=PersonalDataPortlet-In-Portal.jpg
    PersonalDataPortlet-Search.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107618&ver=0&rndm=1085743844250&name=PersonalDataPortlet-Search.jpg
    PersonalDataPortlet-Result.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107619&ver=0&rndm=1085743844250&name=PersonalDataPortlet-Result.jpg

  • How do I attach a JavaBean to a HTML Form submission

    I found an example in the O'Reilly JavaServer Pages book that shows you how to pass a JavaBean from a JSP to a servlet.
    <jsp:useBean id="userInfo" scope="request" class="com.ora.jsp.beans.userinfo.UserInfoBean">
    <jsp:setProperty name="userInfo" property="*" />
    </jsp:useBean>
    <jsp:forward page="/myServlet" />
    Then in the servlet, you do:
    UserInfoBean userInfo = ( UserInfoBean )request.getAttribute("userInfo");
    I want to do almost the exact same thing...but I don't want to forward the request. I want to pass the JavaBean along as part of an HTML form submission. Can anyone help me out with this? Thanks.

    Assuming that you have setup your environment correctly and you have a web application server like Tomcat running.
    Since you didn't provide the code for the bean I created my own. You can change the code any way you want.
    Say UserInfoBean is :
    package test17;
    public class UserInfoBean {
        String firstName;
        String lastName;
        public UserInfoBean() {
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
    }And say you have a JSP page like this:
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
      <head><title></title></head>
      <body>
      <jsp:useBean id="userInfo" scope="request" class="test17.UserInfoBean">
      <jsp:setProperty name="userInfo" property="*" />
      </jsp:useBean>
      <form action="index.jsp" method="POST">
          <input type="text" name="firstName" value="${userInfo.firstName}"/>
          <br/><br/>
          <input type="text" name="firstName" value="${userInfo.lastName}"/>
          <br/><br/>
          <input type="submit" name="submit" value="submit"/>
      </form>
      </body>
    </html>If you access the JSP page like this:
    http://localhost:8080/p/test17/index.jsp?firstName=George&lastName=W
    then it passes in the request parameter from the query string and populates the form.
    Once the form is populated if you submit the form , data is transmitted to the next page , and you can access it via request.getParameter.
    Is this the solution you are looking for?

  • PHP form submission Problem

    Dear all,
    PHP enquiry form submission some error is comes
    "Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/en45/send_form_email.php on line 11"
    Please help me
    WEBLINK
    PHP goes like this
    <!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>PHP Form</title>
    </head>
    <body><?php
    if(isset($_POST['email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['first_name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['telephone']) ||
                        !isset($_POST['company_name']) ||
            !isset($_POST['comments'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['first_name']; // required
        $email_from = $_POST['email']; // required
        $telephone = $_POST['telephone']; // not required
              $last_name = $_POST['company_name']; // required
        $comments = $_POST['comments']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$first_name)) {
        $error_message .= 'The First Name you entered does not appear to be valid.<br />';
      if(!preg_match($string_exp,$company_name)) {
        $error_message .= 'The Last Name you entered does not appear to be valid.<br />';
      if(strlen($comments) < 2) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "First Name: ".clean_string($first_name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Telephone: ".clean_string($telephone)."\n";
              $email_message .= "Company Name: ".clean_string($company_name)."\n";
        $email_message .= "Comments: ".clean_string($comments)."\n";
    /* Redirect visitor to the thank you page */
    header('Location:gt.html');
    exit();
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    <!-- include your own success html here -->
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>
    </body>
    </html>

    some error now
    Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/send_form_email.php on line 5
    My form like this
    <form name="contactform" method="post" action="send_form_email.php">
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="first_name" maxlength="50" size="30" value="Name*:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="email" maxlength="80" size="30" value="E-mail*:">
                                                           </div>
                                                                          <div class="clear"><!-- --></div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="telephone" maxlength="30" size="30" value="Phone.:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="company_name" maxlength="50" size="30" value="Company:">
                                                            </div>
                                                                          <div class="clear"><!-- --></div>
                                                                          <div class="field textarea"><div>
                                                                            <textarea  name="comments"></textarea>
                                </div></div>
                                                                          <div class="submit">
                                                                                    <p>* - Required fields</p>
                                                                                    <input type="submit" value="Send" />
                                                                          </div>
                                                                </form>

  • Change 'new form submission' text when receiving email from contact form.

    Hi,
    One of our clients has asked us to change the text they receive when they get an email from their contact form.
    It currently says: 'new form submission'
    they want it to say: 'West of the Moon ~ Ayr ~ Website Enquiry'
    We have tried changing the name of the form but this only changes the subject in the email not the wording on the email. Is there any way to do this?

    Hi Richard,
    Please check the php script to which the web form submits to and then open that with a text editor and edit the verbiage that you want to there.
    PS - You will need to make these changes after every export from Muse as Muse will override them on every export/upload.
    - Abhishek Maurya

  • Rich text fields, field locking, and form saving/re-opening

    I have a LiveCycle form that has 2 text fields (email and info) and a button. When the button is pressed, the 2 text fields are set readonly and the button is set hidden. A rich text field is populated to provide a mailto link using the email and info text fields:
    form1.firstpage.HyperlinkSF.rtField.value.exData.loadXML(sRichText, false, true);
    This appears to work fine, but when I save the form and re-open it, the readonly fields are now editable and the button has re-appeared. If I remove the functionality associated with the rich text hyperlink, the form correctly re-opens with the readonly fields set readonly and the button is not visible.
    Any idea why populating a rich text field is affecting the form state on saving/re-opening?

    Thank you Bruce for your very helpful links.
    I see that I had incorrectly formed the rich text body tag. I had omitted:
    xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    I had also been unable to get the &body= of the mailto working, and see that I should have had &amp; as in:
    var sURL = "mailto:" + sTo + "?subject=" + sSubject + "\&amp;body=" + sBody;
    All appears to work as expected. Great links. Thanks!
    Robin

  • How do you prevent form submission if Spry validation fails?

    After reviewing and implementing the SpryValidationConfirm and SpryValidationPassword widgets on a test page, I am unable to prevent the form from being submitted if the validation of either widget fails.
    A feature of both widgets is "Blocking form submission if the password criteria is not met".
    I ihave included my code below:
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <cfform method="post" action="result.cfm">
      <span id="sprypassword1">
        <label>Password
          <cfinput type="password" name="mypassword1" id="mypassword1" size="30" />
        </label>
        <span class="passwordRequiredMsg">The password cannot be empty</span>
        <span class="passwordMinCharsMsg">The password must contain at least 15 characters</span>
        <span class="passwordInvalidStrengthMsg">The password must contain 2 special characters, 2 uppercase characters, 2 lowercase characters, and 2 numbers</span>
      </span>
      <span id="spryconfirm1">
        <label>Confirm Password
          <cfinput type="password" name="mypassword2" id="mypassword2" size="30" >
        </label>
        <span class="confirmRequiredMsg">A value is required</span>
        <span class="confirmInvalidMsg">The values don't match</span>
      </span>
      <cfinput type="submit" name="submit" value="Go to the next page">
    </cfform>
    <script type="text/javascript">
    <!--
    var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:15, minUpperAlphaChars:2, minSpecialChars:2, minNumbers:2, minAlphaChars:2}, {validateOn:["blur", "change"]});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "mypassword1", {validateOn:["blur", "change"]});
    //-->
    </script>

    Thanks so much!
    I removed the <cf prefixes from the cfform and cfinput tags and form now does not submit on invalid data.
    I did not rename the 'password' fields as I think there needs to be 2 inputs that can be compared for the confirmation widget to function.
    I have attatched the working code below:
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <form method="post" action="result.cfm">
      <span id="sprypassword1">
        <label>Password
          <input type="password" name="mypassword1" id="mypassword1" size="30" />
        </label>
        <span class="passwordRequiredMsg">The password cannot be empty</span>
        <span class="passwordMinCharsMsg">The password must contain at least 15 characters</span>
        <span class="passwordInvalidStrengthMsg">The password must contain 2 special characters, 2 uppercase characters, 2 lowercase characters, and 2 numbers</span>
      </span>
      <span id="spryconfirm1">
        <label>Confirm Password
          <input type="password" name="mypassword2" id="mypassword2" size="30" >
        </label>
        <span class="confirmRequiredMsg">A value is required</span>
        <span class="confirmInvalidMsg">The values don't match</span>
      </span>
      <input type="submit" name="submit" value="Go to the next page">
    </form>
    <script type="text/javascript">
    <!--
    var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:15, minUpperAlphaChars:2, minSpecialChars:2, minNumbers:2, minAlphaChars:2}, {validateOn:["blur", "change"]});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "mypassword1", {validateOn:["blur", "change"]});
    //-->
    </script>
    Again thanks so much!

  • Mandatory check box before form submission

    I want users to accept my 'Terms & Conditions' statement on an application form before they are allowed to submit it by the e-mail button.
    I want to place a required check box which produces an error message and prevents form submission until it is checked.
    I have read hordes of the postings but none of the solutions seem to do quite what I want.
    Any advice would be gratefully received

    Hi,
    I used the script you provided in the above post, and it worked perfectly, but my situation is a little different: I have two checkboxes, but I only want the message to appear if one of them isn't selected. If the other checkbox is selected, I need the fake submit button to go ahead and generate the email to send the form. I'm new to LiveCycle Designer, and I'm unsure of how to correctly use the "if" and "else" javascript. I need the message to appear when clicking the WebExYes checkbox, but I don't want it to appear when the user clicks the IntercallCheckBox.
    Here's what my script looks like so far:
    if 
    (form1.subForm1.WebEx.WebExYes.rawValue != "1"){ xfa.host.messageBox("You must read the FHEG WebEx Usage Standards and select the Yes checkbox before submitting.");
    else 
    { SubmitButton.execEvent("click");
    if 
    (form1.subForm1.AccountRequest.IntercallCheckBox.rawValue != "1")
    else 
    {SubmitButton.execEvent ("click");
    Can someone tell me what I'm doing wrong or if I can even make this happen?
    Thank you,
    Hannah

Maybe you are looking for

  • I-Cal -- Appointments one hour off

    i-cal on i-phone is advancing all of my scheduled appointments by one hour. The i-cal on my i-mac has the correct appointment time, but the i-phone puts all of my appointments one hour ahead of their scheduled time. I missed two events today until I

  • Inverted Question Mark

    Hi All, In forms 10g when we had entered pound symbol in a text item (using alt + 156) it comes exactly as pound and i am able to save and re-query it. But when the same is inserted through a insert script through sqlplus the pound symbols comes as i

  • Protected scope - how to use methods with it

    I'm trying to use the method removeRange(): http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html#removeRange(int,%20int) From the ArrayList class, but it won't let me as it calls protected void. Is there any way around this so I can use t

  • Restarting Process chain from the middle

    Hi all, I have a question about process chain in BW7.0. When the error has occured in the process chain, is there any way to restart the process chain from where the error has occured? One of the way I came up with was to set the process type into Re

  • XML validation against DTD

    Hi, I have an application that receives XML from an external source. The XML received does not have the XML version and the doc type declaration lines. I want to validate the XML against a DTD. One dirty way of doing this is to open the XML received