164 Posts
redback
7 years ago
2
Topic

Hello Sebloders,

I wonna do an overwrite on the Search Form (List & Search Type). The overwrite on position mainbody works. I having troubles to call the Fields for the form. For example the search field "city". 

This way doesn't work:

$cck->getValue('city');

$cck->renderField('city');

Thanks for helping out.

Best

Chris

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
1
Level 1

Field on the form has no value until form is submited, so your first code can't work on form. You should be able to use $cck->getForm('some_field')

164 Posts
redback
7 years ago
0
Level 2

Cool, works great.

Thanks Klas for you help!

Get a VIP membership