core icon indicating copy to clipboard operation
core copied to clipboard

Form Handler - Several fixes and new functionality from Secure Forms

Open gabbydotCMS opened this issue 14 years ago • 3 comments

Tested on 2.0.

New Functionality 1.- Support custom fields New Functionality 2.- Custom error messages per field

Error 1.- Clicking "Next" takes users from one tab to the bottom of the next one forcing them to scroll up to keep filling the form Error 2.- If user misses one required field and press "Next" button, it will go to the top of the screen. User has to scroll down the screen to find what they miss. Error 3.- Required condition for custom fields is not validated.

We added this new functionality and fixed all these issues by overriding/creating these files:

SubmitContentAction.java contentformmacro.vtl customfieldrender.vtl contentformmacro.js SubmitContentWebApi.java toolbox.xml

in the Secure Form plugin. We'll create a branch with the changes so that you can evaluate whether or not those fixes will make it as they are to a dotCMS release.

gabbydotCMS avatar Aug 30 '12 16:08 gabbydotCMS

All the changes (new functionality and bug fixes) are committed.

These are the files modified:

  • src\com\dotmarketing\viewtools\SubmitContentWebAPI.java
  • src\com\dotmarketing\cms\content\submit\action\SubmitContentAction.java
  • src\com\dotmarketing\cms\content\submit\util\SubmitContentUtil.java
  • dotCMS\html\js\content\content_form_macro.js
  • dotCMS\WEB-INF\velocity\static\content\custom_field_render.vtl
  • dotCMS\WEB-INF\velocity\static\content\content_form_macro.vtl
  • dotCMS\dotCMS\WEB-INF\toolbox.xml

oswaldogallango avatar Aug 31 '12 16:08 oswaldogallango

Dean this might effect the issue Prasad worked on for Content/Form submission editing etc..

jtesser avatar Sep 04 '12 13:09 jtesser

All these improvements specific to this task working... contacted prasad concerning the #submitContentEdit macro which is NOT working... but these improvements are good.

DeanGonzalez avatar Sep 04 '12 17:09 DeanGonzalez