I would like to create a simple form with a submit button tied to custom JS code that will create a set of records. Specifically, I am using the API from
beta.sam.gov to automatically fetch business opportunities. From a UI perspective, all I need is a simple text input box and a submit button.
The documentation already explains how to create custom automation scripts, but
it appears all of the inputs must be already stored inside a corteza record. Practically what this means is to emulate a basic form behavior, I have to have my user create a new record (with fields that match the form inputs) and then to trigger automation when that new record is saved. This seems pretty silly, especially for extremely simple forms with a single input. I would be required to design a new module for every custom form I create. Furthermore, I would be saving every input that users enter into the form, which is unnecessary in this case.
I’ve checked the documentation and can’t seem to find how to make a simple web form without creating a record to represent the form values. Can someone help me?