@aemforms/af-custom-functions
v1.0.13
Published
Provides a collection of custom functions designed to aid creation of adaptive form
Downloads
1,300
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"}');