Questions tagged [entityref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
69 views

How do you select a value of an EntityRef Select2 using jQuery?

I have a scenario where a user selects a row of data to edit and I want an EntityRef Select2 box to be populated with a piece of information from that row. The EntityRef select2 widget works for ...
2
votes
1answer
1k views

How can I trigger a selection for a Select2 EntityRef element via javascript?

The CiviCRM EntityRef form element uses a Select2 select box to make lots of CiviCRM forms more awesome. A user can, for example, search for contacts to choose one. Great. I am building an extension ...
2
votes
1answer
39 views

How can I customise site search settings to use a wildcard for a specific entityRef field?

Is it possible to override the site search settings with respect to the wildcard search, for a specific entityRef field? We have the site search setting configured with wildcard search disabled. On a ...
2
votes
0answers
33 views

crmEntityRef Populated with Custom Fields from a Custom Group

I would like to use crmEntityRef to load all the fields from a custom group I have created. I would like to have the list show the label for the field, and when selected it would return the id. The ...
1
vote
1answer
97 views

Dynamically Change QuickForm on EntityRef selection

I am building a form that has an entityRef that gets me a list of groups. When a group is selected I want another entityRef to be displayed that uses the value of from the entityRef selection (I'm ...
0
votes
1answer
103 views

entityRef widget seems to not respecting params

Whatever has been tried, this code doesn't restrict entityRef widget output according to desired parameters: $selection = array(132, 168, 169); $sa_custom_props = array( 'api' => array('params' =...