Default select item in a select list from cck
Hi all. I have select widget (cck) and I get the array with values from a function. How can I define the "selected select item" ? in a normal form I use the default_value, but in a form with cck ? Tnx. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
I just created a new text select list in a content type, and there is a section there for setting the default value that allows you to choose one of the values you have set in your field. There is also a field to add custom PHP code to choose your default value if needed. Steve Davide Michel 'ZioBudda' Morelli wrote:
Hi all. I have select widget (cck) and I get the array with values from a function. How can I define the "selected select item" ? in a normal form I use the default_value, but in a form with cck ?
Tnx.
Steve Edwards ha scritto:
I just created a new text select list in a content type, and there is a section there for setting the default value that allows you to choose one of the values you have set in your field. Can you give me a screenshot ? I can not find it.
There is also a field to add custom PHP code to choose your default value if needed. How ? I use the phpcode to retrieve the items' array.
Tnx, -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Attached is a screen shot showing what I described. Steve Davide Michel 'ZioBudda' Morelli wrote:
Steve Edwards ha scritto:
I just created a new text select list in a content type, and there is a section there for setting the default value that allows you to choose one of the values you have set in your field. Can you give me a screenshot ? I can not find it.
There is also a field to add custom PHP code to choose your default value if needed. How ? I use the phpcode to retrieve the items' array.
Tnx,
-- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
participants (2)
-
Davide Michel 'ZioBudda' Morelli -
Steve Edwards