Interface ISubmit
Responsibility: define getter and setter for property customResultState
(int
) to have custom submit result state, for all types of submit buttons and inputs.
Interface for classes:
- \MvcCore\Ext\Form
- \MvcCore\Ext\Form\FieldMethods
- \MvcCore\Ext\Form\Submitting
- \MvcCore\Ext\Forms\Fields\Image
- \MvcCore\Ext\Forms\Fields\SubmitButton
- \MvcCore\Ext\Forms\Fields\SubmitInput
Methods summary
public
integer|null
|
#
GetCustomResultState( )
Get submit button custom result state to move submit request to custom specific target url.
There are already build in result states:
- 0 (\MvcCore\Ext\IForm::RESULT_ERRORS ) - to move submit request to configured error url.
- 1 (\MvcCore\Ext\IForm::RESULT_SUCCESS ) - to move submit request to configured success url.
- 2 (\MvcCore\Ext\IForm::RESULT_PREV_PAGE ) - to move submit request to configured previous step url.
- 3 (\MvcCore\Ext\IForm::RESULT_NEXT_PAGE ) - to move submit request to configured next step url.
If you define any new custom result state for your submit button (4 , 5 ...),
you have to implement $form->SubmittedRedirect(); method by your own to redirect
user submit request by this state to your own specific target url.
Get submit button custom result state to move submit request to custom specific target url.
There are already build in result states:
- 0 (\MvcCore\Ext\IForm::RESULT_ERRORS ) - to move submit request to configured error url.
- 1 (\MvcCore\Ext\IForm::RESULT_SUCCESS ) - to move submit request to configured success url.
- 2 (\MvcCore\Ext\IForm::RESULT_PREV_PAGE ) - to move submit request to configured previous step url.
- 3 (\MvcCore\Ext\IForm::RESULT_NEXT_PAGE ) - to move submit request to configured next step url.
If you define any new custom result state for your submit button (4 , 5 ...),
you have to implement $form->SubmittedRedirect(); method by your own to redirect
user submit request by this state to your own specific target url.
Returns
integer|null
|
public
MvcCore\Ext\Forms\Field
|
#
SetCustomResultState( integer|null $customResultState = \MvcCore\Ext\IForm::RESULT_NEXT_PAGE )
Set submit button custom result state to move submit request to custom specific target url.
There are already build in result states:
- 0 (\MvcCore\Ext\IForm::RESULT_ERRORS ) - to move submit request to configured error url.
- 1 (\MvcCore\Ext\IForm::RESULT_SUCCESS ) - to move submit request to configured success url.
- 2 (\MvcCore\Ext\IForm::RESULT_PREV_PAGE ) - to move submit request to configured previous step url.
- 3 (\MvcCore\Ext\IForm::RESULT_NEXT_PAGE ) - to move submit request to configured next step url.
If you define any new custom result state for your submit button (4 , 5 ...),
you have to implement $form->SubmittedRedirect(); method by your own to redirect
user submit request by this state to your own specific target url.
Set submit button custom result state to move submit request to custom specific target url.
There are already build in result states:
- 0 (\MvcCore\Ext\IForm::RESULT_ERRORS ) - to move submit request to configured error url.
- 1 (\MvcCore\Ext\IForm::RESULT_SUCCESS ) - to move submit request to configured success url.
- 2 (\MvcCore\Ext\IForm::RESULT_PREV_PAGE ) - to move submit request to configured previous step url.
- 3 (\MvcCore\Ext\IForm::RESULT_NEXT_PAGE ) - to move submit request to configured next step url.
If you define any new custom result state for your submit button (4 , 5 ...),
you have to implement $form->SubmittedRedirect(); method by your own to redirect
user submit request by this state to your own specific target url.
Parameters
Returns
|