Skip to content

Commit

Permalink
ON-41546 # Add allowGeoscapeAddresses to Form
Browse files Browse the repository at this point in the history
  • Loading branch information
kizaonline committed Jun 27, 2024
1 parent afa6451 commit b777aa5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- `organisationManagedSecretId` to `EndpointConfiguration` and `FormSubmissionEventConfiguration`
- `allowGeoscapeAddresses` to `Form`

## [6.2.0] - 2024-06-21

Expand Down
26 changes: 16 additions & 10 deletions OneBlink.SDK/models/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ public Form(
string description,
string organisationId,
long formsAppEnvironmentId,
List<long> formsAppIds = default(List<long>),
List<FormElement> elements = default(List<FormElement>),
List<long> formsAppIds = default,
List<FormElement> elements = default,
long? id = null,
string postSubmissionAction = "FORMS_LIBRARY",
bool isAuthenticated = true,
List<FormSubmissionEvent> draftEvents = default(List<FormSubmissionEvent>),
List<FormSubmissionEvent> submissionEvents = default(List<FormSubmissionEvent>),
List<FormSubmissionEvent> paymentEvents = default(List<FormSubmissionEvent>),
List<FormSubmissionEvent> schedulingEvents = default(List<FormSubmissionEvent>),
List<FormSubmissionEvent> draftEvents = default,
List<FormSubmissionEvent> submissionEvents = default,
List<FormSubmissionEvent> paymentEvents = default,
List<FormSubmissionEvent> schedulingEvents = default,
List<FormApprovalStep> approvalSteps = null,
List<FormSubmissionEvent> approvalEvents = default(List<FormSubmissionEvent>),
List<FormSubmissionEvent> approvalEvents = default,
bool isMultiPage = false,
string redirectUrl = null,
List<string> tags = default(List<string>),
List<string> tags = default,
DateTime? publishStartDate = null,
DateTime? publishEndDate = null,
string unpublishedUserMessage = null,
Expand All @@ -39,8 +39,9 @@ public Form(
FormApprovalConfiguration approvalConfiguration = null,
string submissionTitle = null,
bool continueWithAutosave = false,
List<string> customCssClasses = default(List<string>),
Guid? pointAddressEnvironmentId = null
List<string> customCssClasses = default,
Guid? pointAddressEnvironmentId = null,
bool? allowGeoscapeAddresses = null
)
{
if (id.HasValue)
Expand Down Expand Up @@ -149,6 +150,7 @@ public Form(
this.customCssClasses = customCssClasses;
}
this.pointAddressEnvironmentId = pointAddressEnvironmentId ?? null;
this.allowGeoscapeAddresses = allowGeoscapeAddresses ?? null;
}
public long id
{
Expand Down Expand Up @@ -286,5 +288,9 @@ public Guid? pointAddressEnvironmentId
{
get; set;
}
public bool? allowGeoscapeAddresses
{
get; set;
}
}
}
1 change: 1 addition & 0 deletions docs/models/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
| `continueWithAutosave` | No | `boolean` | Whether or not viewing the form should auto-continue with autosave data when available rather than prompting the user title | `false` |
| `customCssClasses` | No | `List<string>` | Custom CSS classes that will be added to the form during rendering | `new List<string>()` |
| `pointAddressEnvironmentId` | No | `Guid?` | Optional except when `elements` contains a Point Address element | `null` |
| `allowGeoscapeAddresses` | No | `bool?` | Optional configiration to allow use of Geoscape elements on the form | `null` |

### Other properties

Expand Down

0 comments on commit b777aa5

Please sign in to comment.