@aemforms/af-core
TypeScript icon, indicating that this package has built-in type declarations

0.22.80 • Public • Published

Introduction

The core module containing the model to interpret Adaptive Form JSON Definition and execute rules/expressions specified in that.

Usage

Save it as a dependency

npm i --save @aemforms/af-core

Create a new Form from JSON

import {createFormInstance} from '@aemforms/af-core';
const formJson = {..}
const form = createFormInstance(formJson)

//import data in the form
form.importData({})

//export data after form is being filled by the user
const data = form.exportData()

Validate form Data

import {validateFormInstance} from '@aemforms/af-core';
const formJson = {..}
const data = {...}
const valid = validateFormInstance(formJson, data)

License

Copyright 2022 Adobe All Rights Reserved.

NOTICE: All information contained herein is, and remains the property of Adobe and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Adobe and its suppliers and are protected by all applicable intellectual property laws, including trade secret and copyright laws. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Adobe.

Adobe permits you to use and modify this file solely in accordance with the terms of the Adobe license agreement accompanying it.

/@aemforms/af-core/

    Package Sidebar

    Install

    npm i @aemforms/af-core

    Weekly Downloads

    491

    Version

    0.22.80

    License

    Adobe Proprietary

    Unpacked Size

    496 kB

    Total Files

    128

    Last publish

    Collaborators

    • jalagari
    • cqguides
    • nitigupt
    • rismehta
    • salilt
    • vdua