Avoid Form Submission if there is no change in form data

Hi,
I have a UI for user, where user can do some change and submit. Once user submits the page, server does some complex operations and those are time consuming. Some times user don't do any change and just clicks on the submit button, page gets submitted and server does all those complex operations which is not required as user has not changed any thing.I would like to avoid those server changes when user has done any changes in the input.
I can think of the two solution to this problem.
1) Implement client side validation using hidden fields(having original values) and don't submit the form, if there is no change.
2) Implement the same logic on server side.
Does any one thinks any other solution to this? I am not sure if JSF provides any help in this.
Thanks,
Sudhir

Hi,
You can check if there is any change in your fields using javascript , and then allow user to submit the form or not.
jQuery can make this easy :
jQuery("#FormId :input").change( function(){
         changed = true;
       );And in your h:CommandButton just add a confirm dialog to check the changed variable :
<h:commandButton onclick="return !changed;" value="submit"/>And to perform validation I advice you to use server side validation.

Similar Messages

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • 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

  • Change goods Issue date and delivery date

    while crating Sales document through VA01
    i want  to replace goods issue date (VBEP-WADAT ) with my Z calender date.
    so that delivery date(ETDAT) aslo should chaged automatically ( bcz iof the change in goods isuue date ).
    how to achive this ?
    i tryied in  Program    program of MV45AFZZ/ MV45AFZB in the User Exists mentioned below:
    1.     Form Userexit_Check_VBEP
    2.     Form userexit_move_field_to_vbep
    i was able to change goods issue date (VBEP-WADAT )  but  not refleting in output screen,..
    regards,
    ramesh

    Hi Venkat,
      Even it did not update in my user exit when I update from VBEP-WADAT.  So, I did back calculation (considering route lead time) and updated Delivery date field VBEP-EDATU.  It is simple.  I have given the sample code as below.
       if lines( xvbap[] ) = 1 and VBEP-ETENR = '0001' and            "Calculate RDD while the first line item entered
         vbap-route <> space and <<your GI date>> is not initial.    "Only when header RSD is filled
          select single TRAZTD into ws_traztd from tvro
                where route = vbap-route.
          ws_days = ws_traztd / 24 / 10000.
          if ws_days <> 0.    "Only when Transp. Lead time is maintained ( So, will not affect other entities )
             select single FABKL into ws_fabkl from T001W
                where WERKS = vbap-werks.
             CALL FUNCTION 'WDKAL_DATE_ADD_FKDAYS'       "Calculate as per Factory calender
                 EXPORTING
                   i_date        = <<your GI date>>
                   i_fkday       = ws_days
                   i_fabkl       = ws_fabkl
                 IMPORTING
                   E_DATE        = ws_date
                  E_FKDAY       =
                 EXCEPTIONS
                    ERROR         = 1
                    OTHERS        = 2
             IF sy-subrc = 0.
                VBEP-EDATU = vbak-vdatu.   "copy to the first line item
             ENDIF.
          endif.
        endif.    "Route days

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • I have created a form in InDesign, exported to a pdf, created an editable form and saved.  When I open the form and make changes and save, the reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is alway

    I have created a form in InDesign, exported to a pdf, then created an editable form and saved.  When I open the form and make changes and save, then reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is always minus the edits.   ????

    Hi chuck,
    If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
    Can you please send the form to me at [email protected]  so that I can have a look.
    Regards,
    Rave

  • Avoid marking files as modified by Git when there are no changes

    Hello,
    I am working on a project using Visual Studio 2013 Ultimate and Enterprise Architect 9.0 (a UML tool). I am using Git for Source Control in Visual Studio.
    I have set up the programs so that I can synchronize code from Enterprise Architect (EA) to Visual Studio (VS) and vice versa using MDG Link for Visual Studio (an Enterprise Architect add-in). I first synchronized all the existing code from VS to EA.
    Now I have the following workflow:
    Create UML models in EA;
    Add necessary attributes and operations to the class models;
    Synchronize models with the code, which will add the added attributes and operations to my source;
    The last step will regenerate all my source code files, but even if there are no changes Git marks the files as modified.
    How can I avoid this behaviour, because now all my files are modified when Enterprise Architect synchronizes the model with the source code.
    I only want Git to mark it as modified when there are actually things added or modified in the file.
    Any help will be appreciated.
    Marcel

    Hi,
    I think it's more VS which detect the file was modified, and by default it mark the file as modified in Git. 
    But normally when you want to commit your work these files are removed because Git detect the files are not really changed.
    Did you try to refresh the pending changes in the team explorer (F5). Perhaps Git recalculate all the differences, and then detect the real changes.
    Regards,
    Yan Grenier
    Merci de bien vouloir "Marquer comme réponse", les réponses qui ont répondues à votre question, et de noter les réponses que vous avez trouvé utiles.

  • 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

  • Contact Form Submission Error

    I've got a website on which there is a "Contact Us" form. I have set the submit button to send the form to the email address [email protected] This is the address associated with my Adobe ID. However, instead of receiving a simple form submission, I get the e-mail that I've attached below.

    Have you heard about this workaround? I attempted it, but it didn't work for me.
    "You then need to edit the following: ( line 103 )
    function get_email_headers($to_email, $form_email) {
      $headers = 'From: ' . $to_email . PHP_EOL;
      $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
      $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
      $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
      return $headers;
    This needs changing to the following:
    function get_email_headers($to_email, $form_email) {
    $headers = 'From: ' . $to_email . PHP_EOL;
    $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
    $headers .= 'MIME-Version: 1.0' . PHP_EOL;
    $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
    $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
    return $headers;
    The form will now work with hotmail, Gmail etc etc
    Hope this helps anyone having the same problem "

  • 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.

  • 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!

  • Is there a way to open form as if from different responsibility in R12

    Is there a way to open form as if from different responsibility in R12. Have tried to call FND_GLOBAL.apps_initialize but it did not changed a thing.

    *"Is there any way I can send her messages back and make it look as though my email address no longer exists? "*
    "Message" menu --> Bounce

  • How to change 10g forms url ?

    Hello,
    I developed forms in 10g forms developer and I can call my forms from web browser with default url like http://server:port/forms/frmservlet?config=myform.
    Is there anyway the change that url like http://myform.com or something?
    Thank you for your replies :)

    Well, the first thing to understand is that when you call the Forms Servlet (frmservlet) you are calling a java application and not static content like an html page. So, changing the URL isn't exactly as easy as it would be for a simple web page. On the other hand, hiding the the real URL or redirecting to the proper url can be done fairly easily.
    All of these assume you are using Application Server.
    OPTION 1 - Hide The URL +(more information can be found in MyOracleSupport note 300326.1)+
    <blockquote>There are several ways in which you can hide the real url, but probably the easiest will be to use an IFRAME. The only potential problem with this is that some security software or browser security settings may prevent this from working. So, here's what you do:
    1. Using an HTML or text editor, create a static html file with the following code. Replace my Forms url with your own.
    <HTML>
    <HEAD>
    <TITLE>My Application</TITLE>
    </HEAD>
    <FRAMESET  ROWS="100%,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
    <FRAME SRC="http://someServer:port/forms/frmervlet?config=myconfg" NAME="redir_frame">
    </FRAMESET>
    <NOFRAMES>
    Sorry, your browser does not support frames.  Click <A HREF="http://someServer:port/forms/frmervlet?config=myconfg" TARGET=_top>here</A>
    </NOFRAMES>
    <BODY>
        <!-- ADD ANY EXTRA HTML CODE AS NEEDED -->
    </BODY>
    </HTML>2. In the Oracle home from where OHS is running, find the htdocs directory within the OHS (apache) directories.
    3. Rename "index.html", "index.html_original"
    4. Copy your html file to this directory and name it "index.html"
    It is possible that the html file being used is not "index.html". To determine the correct page, you may need to review your httpd.conf file as this is where the default page is set. Look for DirectoryIndex</blockquote>
    OPTION 2 - Redirect To The Proper URL
    <blockquote>1. Find and open httpd.conf
    2. Within the file, locate this: <Directory />
    3. Just below this line add the following. Use your own Forms url
    RedirectMatch ^/$ /forms/frmservlet?config=somewhere</blockquote>

  • Change hidden form field value

    hi everyone...i'm hoping someone can help me figure out how
    to change the value of a hidden field in a form. i have a page
    setup where users pay a website fee. since the fee is always the
    same, i have the amount setup in a hidden field in my form. my
    question is, i'd like to use promo codes. so i'll add a box in my
    form that says "enter promo code." then there's a link in the form
    that says "apply promo code." i'm thinking that link needs to
    refresh my page and take the value entered by the user in the promo
    code form field and place it in the url. that way i can write a
    cfif statement to change the value of the hidden field. the problem
    is, i can't figure out how to "refresh" the page and take the value
    out of the form field and place it in the url. hope this makes
    sense. maybe someone can offer a better way to do this? i'd truly
    appreciate any help anyone can offer. thanks!

    You would change the amount on the processing page with
    ColdFusion (after the form is submitted), but prior to the CFHTTP
    call. You really should familiarize yourself with CFHTTP (check
    online documentation). It sounds like it is exactly what you need.
    The format of your application would be something like:
    promocode.cfm:
    ====================
    <form name="someform" method="post"
    action="process.cfm">
    <input type="text" name="name">
    <input type="text" name="address">
    <input type="text" name="promocode">
    <input type="hidden" name="order_price"
    value="#OrderValue#>
    </form>
    process.cfm
    ======================
    <!--- Apply promo code --->
    <cfif form.promocode eq "Promo1">
    <cfset form.order_price = .75 * form.order_price>
    </cfif>
    <cfset sales_tax = .1 * form.order_price>
    <!--- Send data to processor gateway --->
    <cfhttp url="https://www.myProcessor.com/gateway/"
    method="POST">
    <cfhttpparam type="FORMFIELD" name="price"
    value="#form.order_price#">
    <cfhttpparam type="FORMFIELD" name="tax"
    value="#sales_tax #">
    <cfhttpparam type="FORMFIELD" name="cc_number"
    value="#cc_num #">
    </cfhttp>
    <!--- Check response --->
    <cfif FindNoCase("Success Text", CFHTTP.fileContent)>
    Good Response
    <cfelse>
    Bad Response
    </cfif>

  • New! Attachments - Upload files as part of a form submission

    You can now add multiple file attachment fields to your forms to collect  files from respondents. Almost all file formats are supported for upload including audio and video (executable and other such file types are not allowed). All files are virus scanned by the service.
    You can add field restrictions that force respondents to upload files less than a certain size, upload multiple files and/or only upload certain file formats.
    All of the data and files collected are acccessible from the View reponse tab.
    Files from multiple respondents can be downloaded together within a single zip file by the author. When downloading, the author has the option of prefixing a field value to the filenames so they know which respondent submitted a file.
    Attachments is available to both free and paid users, however, the maximum file size of all files submitted by one respondent is 100KB for free users and 20MB for paid users. There is no limit on the amount of overall file storage for a free or paid users.
    Benefits
    You no longer have to manage collecting data and files using different solutions – like filling out the form using FormsCentral and sending the files via email. Files and data can now be collected using a single method and everything is stored in one central place so managing the collection process is much easier.
    Ensure that respondents provide the right number, size and type of files.
    Example Use Cases
    Employment Application – Job applicant needs to submit their resume with their application as a single PDF or Word file.
    College Admission – High school student (or parents) need to submit an essay, high school transcript and reference letters with their admission form.
    Grant Application – Applicant needs to submit a proposal document and pictures (JPG or PNG) of their previous work in order to be eligible for the grant.
    Client Onboarding – Financial advisor needs to collect account information and investment documents from new clients.
    Request for Proposal – Procurement department needs to collect bids from competing vendors. Vendors need to fill out a form with their company’s information, provide certification documentation and a detailed proposal document.
    Conference Registration – Exhibitors and speakers need to provide a JPG or PNG head shot for the conference directory that is less than 1MB in size when registering.
    Change Order – Engineering firm uses a change order form to manage changes to their engineering specs. Change orders routinely include videos, images or other drawings to support the requested change.

    Yes you sure can. 
    Right click in the cell corresponding to the attachment field in the View Responses response table and choose "Insert File" (also in the "Insert" menu).  The column must correspond to an attachment type field or you will not see the "Insert File" option.
    Thanks,
    Josh

Maybe you are looking for

  • Searching for a page in the site map

    Hi all! I'm using an older version of Dreamweaver... MX. I'm hoping there's a way to do a search for a specific page using the site map. I have some out-dated pages on a HUGE website I'm trying to clean up for a local organization. I did a search for

  • SharePoint JS grid paging, capturing values using single click event

    Hi  I need some help with getting the following work using the SharePoint JS grid, the reference articles available are not sufficient to continue work.  1) Setting up Paging 2) Capturing individual field values on single click or any other relevant

  • SDM GUI tool

    Helo, Anybody tell me What is SDM GUI tool ? Thanks, Prasad.

  • How to complain to BT?

    Hello, Couple of days back we had Fibre optic broadband put in our property. Since we wanted broadband in the attic, BT Open reach engineer bypassed the main socket which was in landing to attic. When he was there, our telephone line worked correctly

  • Can ESS 2004 with XSS 500 run in an ERP 2005 ladscape with NW2004s

    We are trying to plan our upgrade.  We are running ERP 2004 ESS.  If we upgrade our ERP system to 2005 with Netweaver 2004s J2EE, will the ERP 2004 ESS components still work?