Score:0

Webform_Autocomplete will not accept variant override for existing webform option

mg flag

Recently I've been trying to create a webform with quite a lot of variants for fixed amount of recurring users. The problem I am facing is whenever I try to override a webform_autocomplete component's autocomplete_items value within the variant with an existing webform option, I do not get the desired result. Instead I get whatever the autocomplete_items is selected in the main form. I can override pretty much everything else but this is the critical part for my use case. The YAML method is as follows:

 subject_code_entry_point:
  '#multiple': 10
  '#multiple__empty_items': 10
  '#autocomplete_items': foo_option_codes

The naming scheme for options, if important, goes like this:

foo_option_codes
bar_option_codes
foo_anotheroption_codes
bar_anotheroption_codes

I would appreciate any kind of help you guys can provide.

Thanks in advance.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.