hi,

I have a country drop menu in a webform. I need to assign the country value to the field of the entity-created

Yet the field does not appear in the data selector. The culprits seems to be when the field is a drop menu.

Is there something I am missing?
thanks!

CommentFileSizeAuthor
#3 screenshot.png667.78 KBmastap
#3 pays_organisme_field_definition.png134.68 KBmastap

Comments

mastap’s picture

Sorry to bump this up.
Have I provided enough info to receive a feedback?
Is this a known issue? thanks!

stborchert’s picture

Yet the field does not appear in the data selector.

Uhm, could you provide a screenshot of the page where you expect the field (or the fields name) to appear?

I'm still not sure about what you're to do.

mastap’s picture

StatusFileSize
new134.68 KB
new667.78 KB

thanks a lot for your reply!

In the newly created node, the target field is: "organisme-created:field-pays-organisme"
Yet these are the only available selectors (see picture attached)

I need the value of the field "pays_organisme" from the webform ID179 called "formulaire-organisme" to be inserted in the organisme node I am creating through rules.

seems I should be using [data:pays_organisme-value-raw]
But I get the error:
Le sélecteur de données data:pays_organisme-value-raw pour le paramètre value est invalide.
"The data selector data:pays_organisme-value-raw for the parameter value is invalid"
(sorry this is french to english free translation)

Any clue?
thanks!

PS: I also attached the "pays_organisme" field definition from the webform in case it helps.

mastap’s picture

Any clue on this problem? Is this a known issue?
Thanks for your well-needed help!! :)

stborchert’s picture

Which type of action are you trying to create? Or is this a condition? It would be great if you could attach an export of the rule (please switch site language to english for further screenshots).
It seems the webform data is not available for this action at all so I guess you'll need to use something like "Execute custom PHP" in rules.

stborchert’s picture

Status: Active » Postponed (maintainer needs more info)
emptyvoid’s picture

Hello I am also experiencing missing fields, Explicitly in the $data object.

I have a webform with roughly 30 fields and about 10 or so are split between page breaks. The problem is when I attempt to reference the $data object it only returns the first two page breaks worth of field objects.

Sadly the field I am triggering business logic on is on the 3rd page. :(

The only thing that I can think of that may be related to this issue is when I edit the webform components I get the following error:


Notice: Undefined index: pagebreak_clone in webform_component_include() (line 3455 of /var/www/ccof/code/sites/all/modules/contrib/webform/webform.module). Backtrace:

webform_component_include('pagebreak_clone') webform.module:3479
webform_component_invoke('pagebreak_clone', 'render', Array, NULL, ) webform.module:2130
_webform_client_form_add_component(Object, Array, NULL, Array, Array, Array, Array, 'form', 1, ) webform.module:1909
webform_client_form(Array, Array, Object, Array, 1, ) form_builder_webform.module:293
form_builder_webform_form_builder_load('webform', '267') 
call_user_func_array('form_builder_webform_form_builder_load', Array) module.inc:819
module_invoke_all('form_builder_load', 'webform', '267') form_builder.api.inc:288
form_builder_load_form('webform', '267') form_builder.admin.inc:26
form_builder_interface('webform', '267') form_builder_webform.module:38
form_builder_webform_components_page(Object) 
call_user_func_array('form_builder_webform_components_page', Array) menu.inc:517
menu_execute_active_handler() index.php:21

In my rule for the action I include a message action to print out the $data object and I get index errors when I attempt to reference components like so:


webform_rules['components']['newsletter_signup']);
?>

Notice: Undefined index: newsletter_signup in eval() (line 13 of /var/www/ccof/code/sites/all/modules/contrib/rules/modules/php.eval.inc(125) : eval()'d code). Backtrace:

rules_php_eval('Testing, yes I know this is appearing here. :)



Email

webform_rules['components']['email_address']);
?>




Newsletter signup

webform_rules['components']['newsletter_signup']);
?>

', Array) php.eval.inc:46
RulesPHPEvaluator->evaluate('Testing, yes I know this is appearing here. :)



Email

webform_rules['components']['email_address']);
?>




Newsletter signup

webform_rules['components']['newsletter_signup']);
?>

', Array, Object, Object) rules.core.inc:844
RulesPlugin->getArgument('message', Array, Object) rules.core.inc:862
RulesPlugin->getExecutionArguments(Object) rules.core.inc:1483
RulesAbstractPlugin->evaluate(Object) rules.core.inc:2113
RulesActionContainer->evaluate(Object) rules.plugins.inc:216
Rule->evaluate(Object) rules.plugins.inc:387
RulesReactionRule->evaluate(Object) rules.core.inc:2113
RulesActionContainer->evaluate(Object) rules.plugins.inc:684
RulesEventSet->executeByArgs(Array) rules.module:777
rules_invoke_event('webform_rules_submit', Object, Object, Object, 'webform-client-form-267') webform_rules.module:134
webform_rules_rules_invoke_event(Object, Object, 'submit') webform_rules.module:88
webform_rules_client_form_submit(Array, Array) form.inc:1432
form_execute_handlers('submit', Array, Array) form.inc:846
drupal_process_form('webform_client_form_267', Array, Array) form.inc:366
drupal_build_form('webform_client_form_267', Array) form.inc:123
drupal_get_form('webform_client_form_267', Object, Object, 1) webform.module:1499
webform_node_view(Object, 'full', 'en') 
call_user_func_array('webform_node_view', Array) module.inc:819
module_invoke_all('node_view', Object, 'full', 'en') node.module:1387
node_build_content(Object, 'full', 'en') node.module:1285
node_view(Object, 'full', NULL) node.module:2534
node_view_multiple(Array, 'full') node.module:1407
node_show(Object) node.module:2605
node_page_view(Object) 
call_user_func_array('node_page_view', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Do you have any recommendations?

stborchert’s picture

Please export the rule and attach it here.
To see the structure of the $data variable, install Devel and use <?php dpm($data); ?> in your rule.

Btw.: the text you quoted seems to be incomplete.

stborchert’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)