Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@availity/native-form

Package Overview
Dependencies
Maintainers
8
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/native-form

Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.

  • 2.8.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
275
increased by157.01%
Maintainers
8
Weekly downloads
 
Created
Source

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, and action. method defaults to "post", action will default to "`/ms/api/availity/internal/spc/magneto/sso/v1/saml/${spaceId}`", and target 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.

Keywords

FAQs

Package last updated on 12 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc