![]() |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I've just found a strange issue with a form which works as intended but when I use a viewscript form decorator to format it - it ceases to work. The form posts to an action that validates and then redirects. When the formdecorator is included the page just reloads as if the form failed validation although no error messages are shown. The form includes a file upload field - I'm not sure if this is an issue as I seem to remember reading that altering the decorator of file upload elements is a bad thing. I wasn't aware this would be an issue though if I;m using a form decorator and not customizing the element decorators.
Any ideas as to what may be causing this as I've been using form decorators often without any issues? Many thanks, Tony |
|
|||
|
In case anyone else encounters the same issue. When using a viewscript form decorator. The attributes also need to be included in the form decorator.
In the case of a multipart enctype required for a file upload. The enctype must be set in the form and then the attribute must be included in the decorator with the line: Code:
enctype="<?php echo $this->element->getAttrib('enctype') ?>"
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |