【问题标题】:drupal form api for radio button help needed需要单选按钮帮助的drupal form api
【发布时间】:2010-10-13 09:37:03
【问题描述】:

我必须显示如下自定义表单

上传图片或粘贴图片的网址

  O Radio button to set for image upload

  -------Input field for image upload 
  OR

  O Radio button to set image url

   --------- input field to get that url

我正在为使用#type=>radio 还是#type=>radios 的自定义表单代码而苦苦挣扎

如果我使用单选类型,那么将创建 2 个单选按钮,任一种选择都不起作用

如果我使用类型收音机,我如何按照上述设计分离收音机

请指导我这种情况,

尼西语。

【问题讨论】:

    标签: forms drupal-6 radio-button drupal-forms


    【解决方案1】:

    我会使用收音机,然后使用 CSS 正确定位图像上传和输入字段。

    【讨论】:

      猜你喜欢
      • 2013-02-24
      • 2011-09-02
      • 1970-01-01
      • 2010-11-13
      • 2013-10-09
      • 1970-01-01
      • 1970-01-01
      • 2020-11-12
      • 2012-03-23
      相关资源
      最近更新 更多