@aemforms/af-custom-functions
v1.0.12
Published
Provides a collection of custom functions designed to aid creation of adaptive form
Downloads
1,083
Readme
af-custom-functions
Provides a collection of custom functions designed to aid creation of adaptive form in AEM.
Installation
npm install @aemforms/af-custom-funtions
Usage
// In user's code (ESM)
import { validateURL, navigateTo, toObject } from '@aemforms/af-custom-functions';
// Usage
const result = validateURL('https://example.com');
navigateTo('https://example.com', '_blank');
const obj = toObject('{"key": "value"}');