3
Quote:
Can anybody tell me why it does work and what is the correct code?
1) It doesn't work because the XOOPS function that transforms the form elements to template variables doesn't take care of the "required" flag (you only have access to name / caption / body and hidden).
2) There is no correct code
The only solution I would have for now would be:
- Wait for 2.1 next year (this will be possible, but I changed almost everything in the form framework so I can't just tell you to grab the modification from the CVS tree)
- If you're doing your own module, implement a XoopsForm child class, overload the assign() method, and use your class instead of XoopsThemeForm or whatever you use
Skalpa.>