FormStepIFrame
Stentor API Reference / stentor-models/src / FormStepIFrame
Interface: FormStepIFrame
Defined in: packages/stentor-models/src/Form/FormStep.ts:7
A step is partial form. Fields plus next/prev/submit buttons as needed. We are going through these "mini screens".
Extendsβ
Propertiesβ
iframeβ
iframe:
object
Defined in: packages/stentor-models/src/Form/FormStep.ts:11
An iframe step is a form step that is rendered as an iframe.
srcβ
src:
string
The source of the iframe.
width?β
optionalwidth:string
Optional width, defaults to 100%
height?β
optionalheight:string
Optional height, defaults to 100%
nameβ
name:
string
Defined in: packages/stentor-models/src/Form/FormStep.ts:32
Inherited fromβ
title?β
optionaltitle:string
Defined in: packages/stentor-models/src/Form/FormStep.ts:33
Inherited fromβ
fieldsβ
fields:
FormField[]
Defined in: packages/stentor-models/src/Form/FormStep.ts:37
The fields that are part of the form.
Inherited fromβ
condition?β
optionalcondition:string
Defined in: packages/stentor-models/src/Form/FormStep.ts:39
Inherited fromβ
nextAction?β
optionalnextAction:"next"|"submit"|"omit"
Defined in: packages/stentor-models/src/Form/FormStep.ts:47
The action to take when the user clicks the next button.
"next": move to the next step "submit": force "Next" instead of "Submit" (server generated next step). "omit": don't show the next button (for instance final "Thank you screen")
Inherited fromβ
previousAction?β
optionalpreviousAction:"submit"|"omit"|"previous"
Defined in: packages/stentor-models/src/Form/FormStep.ts:55
The action to take when the user clicks the previous button.
"previous": move to the previous step "submit": force "Previous" instead of "Submit" (server generated previous step). "omit": don't show the previous button (for instance first step)
Inherited fromβ
nextLabel?β
optionalnextLabel:string
Defined in: packages/stentor-models/src/Form/FormStep.ts:59
The label to use for the next button, defaults to "Next".
Inherited fromβ
previousLabel?β
optionalpreviousLabel:string
Defined in: packages/stentor-models/src/Form/FormStep.ts:63
The label to use for the previous button, defaults to "Previous".
Inherited fromβ
final?β
optionalfinal:boolean
Defined in: packages/stentor-models/src/Form/FormStep.ts:67
Inherited fromβ
crmSubmit?β
optionalcrmSubmit:boolean
Defined in: packages/stentor-models/src/Form/FormStep.ts:70
Inherited fromβ
warnBeforeUnload?β
optionalwarnBeforeUnload:boolean
Defined in: packages/stentor-models/src/Form/FormStep.ts:82
Beta
Warn the user before unloading the page if there are unsaved changes.
This is especially helpful when either crmSubmit is true or final is true, to prevent users from accidentally losing their data.
This will trigger a browser dialog when the user attempts to close the tab or navigate away which does not work on all browsers.
This is a beta feature and may change in future releases.
Inherited fromβ
warnBeforeUnloadMessage?β
optionalwarnBeforeUnloadMessage:string
Defined in: packages/stentor-models/src/Form/FormStep.ts:91
Beta
Custom message to display in the unload warning dialog. This is used when the use attempts to hit the 'X' button on the form when they have unsaved changes.
This is a beta feature and may change in future releases.
Note: Most browsers do not display custom messages anymore, but having this property allows for future compatibility and clarity.