Topic on Extension talk:CIForms

Added a second database table, changed mail body filled with form data

1
Parzival1200 (talkcontribs)

I added a second databasetable defined in LocalSettings, because I needed to export a cleaner Json with only selected fields an less dataoverhead. it is checked whether the database exists, if not it is created, if that fails nothing is done.

I am not very familiar with coding in mediawiki extensions nor in php. May be you want to take a look https://github.com/marcwoge/mediawiki-extensions-JSonForms (I only edited CIFormsSubmit.php) Would appreciate any feedback.

Created some new functions:

- createJson

- updateDBsecondtable

- create_output

and made a few changes to function execute()


I will need to clean up the email-body as it looks not really nice (it's only the pdf html with all the missing css) .

My next steps are to add a new Inputtype (email to/cc/bcc). Making it possible to submit the form anonymously with a Inputfield and as a form setting.

Reply to "Added a second database table, changed mail body filled with form data"