我正在集成Drupal Webform和CRM Highrise -我正在使用Highrise Drupal模块(https://drupal.org/project/highrise)来创建一些映射-但是我想扩展模块来传递额外的表单值到Highrise中指定的"background“字段,我遇到的问题是,它不是传递"Birthday Party”的表单值,而是在Highrise中简单地返回“数组”,下面是我现在的代码:
//initial variable declaration
$form['#get_eventtype'] = drupal_render($event_type);
//making the call to post to Highrise
case 4:
$background = $form_state['values']['submitted'][$row['cid']];
$background .= $form['#get_eventtype'];
$new_person->setBackground($background);
break;发布于 2014-01-22 05:31:55
从表单中检索后,是否将值转储到$background中?它将是一个数组,您的值将在其中一个数组元素中。如果您还没有,我建议您安装devel module来帮助您深入了解表单结构。
发布于 2014-02-11 05:44:18
作为一个仅供参考的人,我最终只使用了Formstack.com -它让你能够轻松地将在Highrise中创建的自定义字段映射到你使用Formstack创建的表单。在使用Formstack创建表单时,我嵌入了提供的JavaScript标记,现在就可以使用了。
https://stackoverflow.com/questions/21265593
复制相似问题