API Form - POST JSON method not working

Wappler Version: 6.6.2
Operating System: Ubuntu 22.04 LTS
Server Model: NodeJS
Database Type: N/A
Hosting Type: Docker deployment

Expected behaviour:
When using the API form with the POST type set as JSON, the form should correctly post the data in JSON format and not in form data.

Actual behaviour:
When using the API form type with the POST type set as JSON, the attribute post-data="json" gets set. However, in the dmxAppConnect configuration, it is defined to fetch this attribute from postdata and not post-data, leading to a discrepancy and the JSON data not being correctly posted.

<form id="apiForm" is="dmx-api-form" method="post" action="your-api-endpoint" post-data="json">
    <!-- Your form inputs here -->
</form>

Should be fixed with following update: dmxAppConnect.zip (120.4 KB)

1 Like

Fixed in Wappler 6.7.1