@uio-appu/nettskjema-utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Nettskjema utils

NPM

Utility functions for webapps integrating with Nettskjema.

Quick start

import { createSubmissionAndPost } from '@uio-appu/nettskjema-utils';

createSubmissionAndPost(formId, {
  question1: 'Answer 1',
  question2: 'Answer 2'
})
  .then(() => console.log('Submission delivered'))
  .catch((error) => console.error(error.message));

Readme

Keywords

none

Package Sidebar

Install

npm i @uio-appu/nettskjema-utils

Weekly Downloads

8

Version

0.2.2

License

MIT

Unpacked Size

130 kB

Total Files

17

Last publish

Collaborators

  • tormki
  • magnnyg
  • eebirkel