use API.v1.postActivity instead.
Retrieve a dataset
use API.v1.getDataset instead.
use API.v1.getForm instead.
Retrieve a template
Use this to load widgets within a certain domElement
Turn any field into a picklist with static data
const pfield = fields('picklistField').input()[0];
const data = [{id: 1, name: 'John'}, {id: 2, text: 'Jane'}];
const picklist = gx.PickList(null, null, null, {data}, pfield);
// Update with new data
const newData = [{id: 3, name: 'Mike'}, {id: 4, text: 'Michelle'}];
picklist.updateStaticData(newData);
These functions and classes are available within a form plugin via the global gx variable.
Example