关于Check boxes的defualt代码...

关于Check boxes的 defualt代码的设置

The default value php code returned an incorrect value
Expected format : array( 0 => array('value' => ...), 1 => ...)
Returned value :

具体怎么实现,能给个实例吗?thanks~

form api?

form api?

module 內?

那錯誤是那裡產生的?

提問的智慧(無惡意, 很長, 但掃一眼已經學不少東西)
http://www.song.idv.tw/docs/question.htm
(也可看看另一CMS - plone)

Joetsui's blog

--------------------------------
Joetsui's blog

怎么没人回答一下啊

怎么没人回答一下啊。我也遇到了同样的问题,在搜索中找不到答案
-
information about cervical cancer of the world

因为问题不清楚,是

因为问题不清楚,是在CCK field里PHP自定义checkbox还是哪里?
把你写的php代码贴出来看看,大家才好回答。

楼主是想问这个

楼主要问的问题也是我要问的问题,我搜了一下,国外一家伙也在问这个问题,也就是自定义CCK字段如果是check box类型的默认值是什么?可惜没有答案。下面是国外问题描述:
Default value for CCK Check box field

Hi,I have added a CCK check box field. I want it's default value to be selected. (it should be checked initially when the page is viewed).But by default the box is unchecked. I tried giving the following code in Php code of 'default value'return array(0 => array('Default value' => 'on'));It still does not work. The check box is still uncheckedAny pointers on this issue would be very helpful.RegardsDrupalDev2007

我在使用check box的时候,怎么会出现一个选项:N/A,而我并没有在Allowed values list中加入这个“N/A”呀!
何解?望高人指点

改成"required "

改成"required " 就會沒有"N/A" 了

--------------------------------
Joetsui's blog

--------------------------------
Joetsui's blog