How can I set a form to be on or off based on weather conditions?

  • jckarlnusa
    Asked on November 24, 2015 at 11:56 PM

    I work for a Fire District.  We issue or don't allow burn permits based on weather conditions.  I'm looking for a way to have the on-duty officer be able to turn on or turn off a form based on the weather conditions each day.  I'm looking to do this where they don't have to log into my account to change the form everyday.

    Possible option/question: Can one form filled out by my personnel on our private page, change which form is visible on our public page?

  • Carina
    Replied on November 25, 2015 at 4:45 AM

    I need to investigate further this situation to try to find a solution. Which weather conditions affect this permit? Are they only temperature based?

     

    Thank you

  • jckarlnusa
    Replied on November 25, 2015 at 7:32 AM

    If the wind speed is below 10 mph and the humidity is above 35%, then weather conditions warrant local burning by residents.  I will have a form that residents may fill out when these conditions are met which will alert all the Fire District Officers.  If the weather conditions aren't met, I want a different screen/webpage to display stating that we are not issuing permits that day.  I need this to where the Fire Marshal can turn this on or off very easily like maybe a private form he can simply fill out saying yes or no and that will change whether or not the 'burn permit form' will display or the webpage stating the conditions don't favor burning will display.

    Thank you for all insight and assistance.

  • Ben
    Replied on November 25, 2015 at 11:01 AM

    There are 2 ways that this seems as something that is plausible:

    1. have the people / person that would edit the form as your sub account user

     - If this is something that would work for you, they could simply log into their account and edit the status of that single form (set it as active or disabled).

     - with this setup it means that they do not need to know your username, password or anything of sorts, they would have their own and would only be able to do what you give them permission to do - for example to see submissions, or only to edit the form (disabled/enabled).

    You can see more about this here:

     How to Share Forms with a Sub-Account User

    How to Change the Status of Forms

    2. Through API.

     - It is possible to do this through API,  but it would require a developer to look into this for you if you require some specific setup.

    They could use PUT /form/{id}/properties with disabled parameter. Since this is a custom solution however, we would not be able to assist you with this (which is why I mentioned that you would need to hire a developer).