2 Replies Latest reply on Jul 11, 2013 7:40 PM by jeffusu

    How to make a Web App Item Repeat?

    jeffusu Level 1

      Hi,

       

      Is there a way to build a Web App that has an item repeat automatically?

       

      For example if there is a list view of ongoing events, is there a way to code it so an event appears every other Tuesday for example?  The idea is that the user doesn't have to create a new event for every Tuesday.

       

      Pointers in the righ direction or jQuery/javascript ideas are much appreciated!!

       

      Thanks,

      Jeff

        • 1. Re: How to make a Web App Item Repeat?
          thetrickster888 Level 4

          Yea it'd have to be javascript/jQuery. The jQuery solution would be something like:

           

          • Add a field to your web app that is called "Daily Class" and use the True/False field type.  This field type will output a "1" if it's True and "0" if it's False. Also, if you are retroactively adding this field to your web app, there's a chance there might be nothing output if someone didn't click the checkbox at all.
          • Add another field to your web app called "Daily Class Day" and have it be a dropdown (select box) so that you can add the days of the week and they can only choose those days so your values will be consistent. If you left it a string or regular text field type then your client could enter values like "wednesday" or "Wednesday" or even have misspellings.
          • Add these field sto your web app layout list or detail view in a hidden input elements:
            • <input type="hidden" id="dailyeventstatus" value="{tag_Daily Class}"/>
            • <input type="hidden" id="dailyeventdate" value="{tag_Daily Class Day}" />
          • Your jQuery could check for that input and if it's value is "1" and "1" only and if there's a value for the day, then copy that class information and insert it into another list that you have setup to show daily classes.
          • 2. Re: How to make a Web App Item Repeat?
            jeffusu Level 1

            Ah, thanks a lot that was very helpful.

             

            I was thinking something like that could work, but was having trouble coming up with how to actully implement it.

             

            Thanks!

            Jeff