@availity/native-form v6.0.4
native form
Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.
Install
npm install @availity/native-form --save
Usage
nativeForm(spaceId[, params[, formAttributes][, type]]);
Required params
- spaceId: String
Optional params
- params: Object. Additional parameters you want sent in the post.
- formAttributes: Object. Set/override the form attributes like
target
,method
, andaction
.method
defaults to "post",action
will default to "`/ms/api/availity/internal/spc/magneto/sso/v1/saml/${spaceId}`", andtarget
will default to "_blank". Additional attributes can be defined and should be valid on an HTML form element. - type: String. Override the magneto integration type. Defaults to "saml"
import nativeForm from '@availity/native-form';
nativeForm('12312312312', {myExtraParam: 'myExtraParamValue'}, {target: '_top'});
When nativeForm
is called it wil create a native HTML form and submit it.
8 months ago
8 months ago
9 months ago
9 months ago
11 months ago
1 year ago
11 months ago
1 year ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago