
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ipscape/form-builder
Advanced tools
The form builder was developed for building chat surveys which are essentially mini forms with few elements to be displayed. Form components included:
The form builder was developed for building chat surveys which are essentially mini forms with few elements to be displayed. Form components included:
With NPM
npm install --save @ipscape/form-builder
With Yarn
yarn add @ipscape/form-builder
To get started:
import IpscapeFormBuilder from '@ipscape/form-builder';
// Call init to get a form started
IpscapeFormBuilder.init(pageData, '#app')
.then(() => {
console.log('Loaded');
});
A page object contains:
{
id:'1',
name: 'Survey 1',
meta:{
pages:[
{ id:1, name:'Survey 1'},
{ id:2, name:'Survey 2'}
],
fields: {
contact: [
{ id: 1, name: 'phone1', caption: 'Phone1' },
{ id: 2, name: 'phone2', caption: 'Phone2' },
{ id: 3, name: 'phone3', caption: 'Phone3' },
{ id: 4, name: 'timezone', caption: 'Timezone' },
{ id: 5, name: 'customer_key', caption: 'Customer Key' }
],
activity: [
{ id: 11, name: 'street_address_1', caption: 'Street Address 1' },
{ id: 12, name: 'street_address_2', caption: 'Street Address 2' },
{ id: 13, name: 'postcode', caption: 'Postcode' },
],
},
},
components:[
{
id:'a1b94f7f-38dd-4444-8b39-2a18c5549704',
component:'Button',
field:'Button',
attributes:{
label:'Start Chat',
action: { name: 'submitForm', target: { id: null, page: null }},
required:true,
}
}
]
}
There is just the one event that is broadcast on the document "onPageUpdate". The event contains a payload with
document.addEventListener('onPageUpdate', (event) => {
console.debug('+-- On Page Update --+', event.detail);
});
The JS file produces the following methods:
The init method is used to bootstrap the form builder.
It requires two parameters:
/******
* The html mount element should have class="container cumulus"
* <div id="app" class="container cumulus"></div>
******/
import IpscapeFormBuilder from '@ipscape/form-builder';
const pageData = { ...};
// Call init to get a form started
IpscapeFormBuilder.init(pageData, '#app')
.then(() => {
console.log('Loaded');
});
Calling init will also add the ipscape.builder namespace to the browser window.
This namespace includes all the methods available in the library except init.
Used when switching from one page to another.
IpscapeFormBuilder.loadPage(pageObj);
Will reset back to an empty object
IpscapeFormBuilder.resetForm();
Used when a page is added for the campaign or a page name is changed.
The page meta briefly describes all the pages available in the selected campaign.
The payload is an array of page objects that require an id and a name.
const pages = [
{ id: 'a0001', name: 'pre-chat'},
{ id: 'd0011', name: 'faq' }
]
IpscapeFormBuilder.updatePageMeta(pages);
{
source: 'https//www...',
}
FAQs
The form builder was developed for building chat surveys which are essentially mini forms with few elements to be displayed. Form components included:
We found that @ipscape/form-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.