We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Get dataFormFields in JSON format?

Hi,

The retrieveFormFields() function returns an object with the properties of each field. Is there a function to retrieve this same information in JSON format so that it can be stored in the database? I have been searching but I can't find if this function exists.

Thank you very much!


5 Replies 1 reply marked as answer

VV Visvesvar Venkatesan Syncfusion Team October 6, 2022 06:07 AM

submit form.png Hi Pere,


You can use our Submit form button in the toolbar menu to export it as JSON. This will export the form field value as Json.


Kindly find the image for the submit button.


Regards,

Visvesvar K V



PA Pere Argelich Romà October 6, 2022 08:46 AM

Hi Visvervar,

I would need to be able to store the JSON in a JavaScript variable programmatically (without user interaction). Is this possible?

Thank you very much!



VV Visvesvar Venkatesan Syncfusion Team October 7, 2022 08:57 AM

Hi Pere,


Thank you for your update.


Kindly find the sample for your requirement below.


Sample - https://stackblitz.com/edit/qnss5r?file=index.html,index.js


Regards,

Visvesvar K V 


Marked as answer

PA Pere Argelich Romà replied to Visvesvar Venkatesan October 7, 2022 11:05 AM

Hi Visvesvar,

Now works fine!! 

Thank you very much!



SK Sinthiya Kalimuthu Syncfusion Team October 10, 2022 03:20 AM

Hi Pere,


Thank you for the update.


Regards,

Sinthiya K


Loader.
Live Chat Icon For mobile
Up arrow icon