post https://{server}/api/v2.1/forms/
Create a form in the base.
To customize this form, you can use the following request body in the
form_config
parameter and:
- Define the name of the form;
- Choose which columns to include in it;
- Set required fields;
- Add descriptions;
- Add remarks;
- Send notifications;
- Add a notice on the top of the form;
- Add a notice on the bottom of the form;
- Show a notice after submission;
- Add a redirect link after submission;
- Set a submission deadline.
{
"form_name":"Customer Survey", // The name of your form
"columns":[ // Choose the columns to include
{
"key":"0000", // The column ID
"is_required":false, // Set obligation
"description":"", // Add a description if needed
"filters":[], // Conditional question (details follow)
"filter_conjunction":"And" // Filter behavior (details follow)
},
{
"key":"zJSb",
"is_required":false,
"description":"",
"filters":[],
"filter_conjunction":"And"
},
{
"key":"xIy2",
"is_required":false,
"description":"",
"filters":[],
"filter_conjunction":"And"
}
],
"table_id":"0000", // ID of the table
"remarkOption":{ // A notice at the bottom
"isRemarkContentShow":false,
"remarkContent":""
},
"notification_config":{ // If notification will be sent
"is_send_notification":false,
"notification_selected_users":[]
},
"top_remark_option":{ // A notice at the top
"is_top_remark_content_show":false,
"top_remark_content":""
},
"success_message_option":{ // A message after submission
"is_success_message_show":true,
"success_message":"Thanks!"
},
"success_redirect_option":{ // A redirect URL after submission
"is_success_redirect_show":true,
"success_redirect":"www.google.com"
},
""submit_deadline_option":{ // An optional submission deadline
"is_submit_deadline_show":true,
"submit_deadline":"2021-10-28 00:00:00"
}
}
Resolving the White Page Issue in Edit Mode
If you cannot open the newly generated form in edit mode, please check the browser console for error messages. Typically, the page remains blank if a configuration option is missing.