Giter VIP home page Giter VIP logo

formit2db's Introduction

FormIt2db/db2FormIt

FormIt hooks for saving/retreiving xPDO objects.

Features

FormIt2db/db2FormIt are two small snippets to save xPDO objects during FormIt posts and retreive them before displaying FormIt forms.

Credits

The snippets base on the code in the following thread in MODX forum https://forums.modx.com/thread/32560/formit2db-with-autocreate-schema-classes

Installation

MODX Package Management

The xPDO models could be also generated by i.e. MIGX or CMPGenerator.

Usage

Install via package manager and add the hooks to the FormIt call.

Documentation

For more information please read the documentation.

formit2db's People

Contributors

dependabot[bot] avatar jako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

formit2db's Issues

Dont save file names (strings in CSV) to DB when using with AjaxUpload

Hi Jako,

first many thanks for your work on MODx!

Found issue:
When using Formit2DB with AjaxUpload I cant save the file names to DB. Consider this Formit call:

[[!FormIt?
   &hooks=`AjaxUpload2Formit,AjaxUploadAttachments,FormItSaveForm,Formit2db,email,FormItAutoResponder,redirect`
   &ajaxuploadFieldname=`filesCSV`
   &arrayFields=`["filesCSV"]`
   ...
   &store=`1`
   &redirectTo=`6822`
]]
<form action="[[~[[*id]]]]" method="post" class="form-horizontal" id="reklamacni-formular">
...
<input type="text" id="filesCSV" name="filesCSV" hidden="hidden">
...
</form>

After submit, string content of "filesCSV" is available in all other hooks (FormItSaveForm, email, FormItAutoResponder, redirect) except for Formit2db.

  • All other fileds in the form works well and are being stored with Formit2db (and all other hooks)
  • No errors in MODx neither in PHP log

Would you be so kind and try to check it, please?

Thanks and regards, Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.