I'm using float left for forms.
When first load, css added. but when submitted without fill inputs css not included.
| Comment | File | Size | Author |
|---|---|---|---|
| submitted.JPG | 19.89 KB | mehmetali | |
| first load.JPG | 16.84 KB | mehmetali |
I'm using float left for forms.
When first load, css added. but when submitted without fill inputs css not included.
| Comment | File | Size | Author |
|---|---|---|---|
| submitted.JPG | 19.89 KB | mehmetali | |
| first load.JPG | 16.84 KB | mehmetali |
Comments
Comment #1
joachim commentedI am seeing this bug too.
Comment #2
joachim commentedI'm guessing this is because on validation the form is retrieved from the cache and the form builder function -- where the CSS gets added -- is not called.
Comment #3
joachim commentedThe trick is to put the drupal_add_css() call in your form's theme function.
Found this: http://www.appnovation.com/drupaladdjs-and-drupaladdcss-hookformalter-an...
This is thus probably a works-as-designed, though some documentation in the example module about this is needed.
Comment #4
joachim commentedClearer title.
Comment #5
bneel commentedSimply add you drupal_add_css in your validation callback.