Skip to content

Availability

lallysmbc edited this page May 18, 2021 · 4 revisions

Related

Controlling Form Availaiblity

Form availability can be controlled per Environment by setting a boolean availability value against the ASPNETCORE_ENVIRONMENT value for the specified environment.

For example:

{
 "FormName": "My test form",
 "BaseURL": "my-test-form",
 "EnvironmentAvailabilities":[
   {
     "Environment": "Local",
     "IsAvailable": true
   },
   {
     "Environment": "Int",
     "IsAvailable": false
   }
 ]

If the availabilities block is not present or the availability for the requested environment is not specified forms will be assumed to be available.


Additional Configuration

You can control the form availiabilty more with the EnabledFor options. See the related link above for more info.

 "EnvironmentAvailabilities": [
    {
      "Environment": "local",
      "EnabledFor": [
        {
          "Type": "TimeWindow",
          "Properties": {
            "Start": "2021-05-18T01:00:00",
            "End": "2022-05-18T01:00:00"
          }
        }
      ]
    }
  ]
Clone this wiki locally