7 Replies Latest reply on Oct 4, 2019 4:12 AM by Lakshmipriya Avudaiappan

    Custom HTML - Footprints 11.6.10

    Lakshmipriya Avudaiappan
      Share This:

      Hi All,

      Am exploring custom HTML.

      I have tried some Html code from other discussion. But it is not working.

      Can anyone tell me a simple example to be used within custom HTML?

      FP version 11.6.10

       

       

      Thanks,

      Lakshmipriya

        • 1. Re: Custom HTML - Footprints 11.6.10
          Paul Tipping

          What are you trying to accomplish with the code?

          • 2. Re: Custom HTML - Footprints 11.6.10
            Lakshmipriya Avudaiappan

            Actually i want to achieve some requirements. So that i wanted to explore custom html how to achieve some basic calculation.

            Some of the requirements are,

            1. We have date field 'schedule date'. If difference between create date and schedule date is less than 48hrs then need to populate another dropdown field(type = emergency)

             

            2. Incident should be changed to closed automatically after 48hrs from completion(status=completed)

             

             

            Thanks,

            Lakshmipriya

            • 3. Re: Custom HTML - Footprints 11.6.10
              Lakshmipriya Avudaiappan

              Can you tell me how to use custom HTML option with simple requirement ?

              Am exploring Custom html .Just for example ,to change the status of incident based on some condition .

              Can you tell me the steps?

               

               

              Thanks,

              Lakshmipriya

              • 4. Re: Custom HTML - Footprints 11.6.10
                Paul Tipping

                The option to change status could be accomplished using AutoFields in the configuration or Escalation rules.

                 

                I do not have any custom HTML code for this I'm afraid.

                • 5. Re: Custom HTML - Footprints 11.6.10
                  Lakshmipriya Avudaiappan

                  As per my requirement ,I cannot use autofield concepts as my requirement is not only to change the status. I have bunch of requirements and i got some answers from other community posts saying we can use Custom HTML to achieve this.

                  Still i am not clear ,what is the use custom HTML and why we go for it?

                  • 6. Re: Custom HTML - Footprints 11.6.10
                    Paul Tipping

                    The use of Custom HTML is for you to be able to code the changes you need.

                     

                    Here is an example of code used to change the window to full screen

                     

                    <script type="text/javascript">

                        window.onload = maxWindow;

                     

                     

                        function maxWindow() {

                            window.moveTo(0, 0);

                     

                     

                     

                     

                            if (document.all) {

                                top.window.resizeTo(screen.availWidth, screen.availHeight);

                            }

                     

                     

                            else if (document.layers || document.getElementById) {

                                if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {

                                    top.window.outerHeight = screen.availHeight;

                                    top.window.outerWidth = screen.availWidth;

                                }

                            }

                        }

                     

                     

                    </script>

                     

                    You would need to write your own code dependent upon  the requirement.

                     

                    It would be best if you asked exactly what you needed to see if any other Community users have the code / experience to help.

                     

                     

                    As for your requirements I am still unsure of exactly what you are trying to do, but If you wish to change field values - you can use Escalation rules.

                     

                    If you wish to perform calculations on date fields as you mentioned then we discussed this is another Communities post with examples from fellow community users to review.

                    • 7. Re: Custom HTML - Footprints 11.6.10
                      Lakshmipriya Avudaiappan

                      Thank you Paul!

                      Let me try it