Forums / Developer / Forms in Exponential / Comment56762
Alex Kozeka
Wednesday 27 January 2010 1:23:52 am
Hi Piotrek,
These are my questions and thoughts about what should possible to do in Exponential:
- Is it possible to create/handle HTML form without using eZ content objects and their datatypes? - How to create custom/extra validation rules for the form? For example: Need to: * validate that input1 is greater than input2 (integer or date) * validate that sum of input1 and input2 is not greater than specific number Strict requirement is that inputs don't loose their values after form was sent and was displayed again. - How to create different sets of validation conditions for different view-contexts of the form? Example: When adding object - validate all fields. When editing - just some of them. If adding/editing by admin - validate just one field. - What are 'hooks' in terms of Exponential? Where can find an example of their usage? And how can they be used for adding custom actions for existing PHP modules? For example in "kernel/user/register.php" you can find this line: $Module->addHook( 'post_publish', 'registerSearchObject', 1, false ); - How to create view-context specific form input labels for the form? Example: Let's say for site administrator some form field labels are "Customer1 Name", "Customer2 Name" and for anonymous users those labels should be "Director", "Manager". - How to create different forms for "Adding" and "Editing" content object and possibly with slightly different fields labels? - How to post-process values of fields of sent form before adding/updating actual data to DB with custom PHP code?Example: Need to do 'normalization' of names before saving, like: user input was "john sMITH" and it should be "John Smith".
PS: WYSIWYG editor didn't work under IE!
Cheers,
Alex
-- Argentea S.p.A., http://www.argentea.it/