- About JET
- Administration
- Creating an App
- Basic Functions
- Advanced Functions
- Automation Parameters
- Field Value Selection
- Field Value Formatting
- Field Value Manipulation
- Total Count of a Form
- Total Sum of Field
- Minimum Value of Field
- Maximum Value of Field
- Average Value of Field
- Site Level Parameters - Site Name
- Site Level Parameters - Login User
- Site Level Parameters - Login User Email
- Owner Email
- Check Permission Group
- Date Time Addition
- Email Image
- CheckBox Condition
- Usage of Time Fields
- Parent Form Updates
- 3rd Party API
- Other Features
- Known Issues & Solutions
- Linux
- Windows
- FAQ (JET)
3.5.Customized Form
Customized Form
You can insert html codes to customize your own page that will show up when any user clicks on the form.
Step 1: Click on
Step 2: Select ‘Customized Form’ under Form Type
Step 3: Click on Modify Source
Step 4: Enter the code you want, it can be html.
Step 5: Open the form from the main page to see the page you created with the code.
Under Customized form, the below is how you can send an API.
jetRequest(
{
method: "httpRequest",
url: "https://jsonplaceholder.typicode.com/posts",
requestMethod: "POST",
body: '{"title":"foo","body":"bar","userId":1}'
},
{},
(data) => {
console.log(data);
},
(error) => {
console.error('Request failed:', error.message);
}
);
Method – Delares the method used which in this example, its “httpRequest”
URL – URL for the API.
requestMethod – transport protocol
body – assigns values to various part of the send request.