How to save the data from a custom Form Element Plugin into the database?

Confluence User - 06 Jan, 2017

I created a simple Form Element plugin which has 2 text fields and one button. On button click javascript event, I make an ajax call to an external Webservice by passing the value from 1st text field as a parameter. The response from Webservice is being set into the 2nd text field.  

On form submission, how to retrieve the data entered by the user and save this data into the database? Any sample code? 

(In future will require extended functionality to having other form elements in the plugin to capture more data.)

 

 

plugins;forms

1


09 Jan, 2017
confluenceUser
1
confluenceUser

Hi, if you are developing a Form Element plugin, then you should not need to worry about the database storing part. That is handled by the Form Store Binder you are using in your section or form. There is a sample tutorial on developing a Form Element plugin at How to develop a Mood Rating Form Field.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print