Describe the bug
In JE Forms, when choosing "Rest API request" as type, the description for the custom body explainst the request body will be in JSON format. But it is not.
To Reproduce
Steps to reproduce the behavior:
Create a new form in JE forms.
add a hidden field, for current user ID, named user_id
edit the submit button
choose "Rest API request" as type
add your API URL
define your custom body.
In my case:
{
"id": %user_id%,
"login": "johndoe",
"email": "john.doe@somewhere.com",
"test": "test1233"
}
Save and publish the form and add it to a WP page
Open that page and press the button to execute the request.
Check the request on API side.
In my case the body will not contain a valid JSON format, but look like this:
id=1&login=johndoe&email=john.doe%40somewhere.com&test=test1233
Expected behavior
A valid, standard formatted JSON content would be expected.
Screenshots
Desktop (please complete the following information):
OS: MacOS 14.5
Browser Brave, Chrome, Safari
Version latest
Additional context
Also a further suggestion for JetEngine Query Builder:
When adding keys and values to a query, these are usually added as a parameter to the API request, which is not always the best or desired approach, regarding security. Please add an option to send the keys and values as JSON body, so the whole request will be sent consistant and secured.
Describe the bug In JE Forms, when choosing "Rest API request" as type, the description for the custom body explainst the request body will be in JSON format. But it is not.
To Reproduce Steps to reproduce the behavior:
Create a new form in JE forms.
add a hidden field, for current user ID, named user_id
edit the submit button
choose "Rest API request" as type
add your API URL
define your custom body. In my case: { "id": %user_id%, "login": "johndoe", "email": "john.doe@somewhere.com", "test": "test1233" }
Save and publish the form and add it to a WP page
Open that page and press the button to execute the request.
Check the request on API side. In my case the body will not contain a valid JSON format, but look like this: id=1&login=johndoe&email=john.doe%40somewhere.com&test=test1233
Expected behavior A valid, standard formatted JSON content would be expected.
Screenshots![iScreen Shoter - Brave Browser - 240621184230](https://github.com/Crocoblock/suggestions/assets/139015177/11efa690-c5c6-4262-89bb-7453828ab8f4)
Desktop (please complete the following information):
Additional context Also a further suggestion for JetEngine Query Builder: When adding keys and values to a query, these are usually added as a parameter to the API request, which is not always the best or desired approach, regarding security. Please add an option to send the keys and values as JSON body, so the whole request will be sent consistant and secured.