2 Replies Latest reply on Nov 5, 2009 7:35 PM by pcgirl

    How to control the TOTAL to 100

    pcgirl

      This form is not going to submit by email.

       

      I want to let the user knows that the TOTAL amount should be 100. I wonder if a invisible warning message can help or if you can give me some good idea or javascript to help that would be good.

        • 1. Re: How to control the TOTAL to 100
          pguerett Level 6

          Here is a modifed sample ....I added two buttons. One that is the button the user will press.....added code on the click event to validate that the field is 100. If it is then I press the real submit button through script. If it is not I put up an error message and do not press the real submit button. Once it is working make the real submit button invisible so the user will not see it.

           

          Make sense?

           

          Paul

          • 2. Re: How to control the TOTAL to 100
            pcgirl Level 1

            Thanks Paul,

             

            According to your instruction, it works well. But is there any way (may be

            Javascript is needed) to controlling the TOTAL to 100 without using submit

            button (like automatically to inform the user if the figure is not 100).

            That is why I need to put a message at the side of the TOTAL figure.

             

            Would you like to continue to find out a better way.

             

            Will reply your email after 7 Dec 09 cause I will be on a long break.

             

            Regards

             

            Stella

                                                                                            pguerett                                                 

                         <forums@adobe.com                                        

                         >                                                          To

                                                   Stella Fung                    

                         24/10/2009 12:04          <stella.fung@aon.com.au>       

                         AM                                                         cc

                                                                                            Subject

                         Please respond to         How to control

                         clearspace-180922         the TOTAL to 100               

                         3801-39153-2-2335                                        

                         635@mail.forums.a                                        

                             dobe.com                                                                               

            Here is a modifed sample ....I added two buttons. One that is the button

            the user will press.....added code on the click event to validate that the

            field is 100. If it is then I press the real submit button through script.

            If it is not I put up an error message and do not press the real submit

            button. Once it is working make the real submit button invisible so the

            user will not see it.

             

            Make sense?

             

            Paul