[support] make a field depend on multiple fields
See original GitHub issueI want to perform an http request to get a field’s options, but only when other fields have values, other fields may get theirs options by HTTP requests
example:
fields= [
{ key: 'field1', type:'select', templateOptions:{options: http.get('/field1')},
{ key: 'field2', type:'select', templateOptions:{options: http.get('/field2')},
{
key: 'field3',
dependencies: ['field1', 'field2'] // <-------------------
}
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can I make a field dependent on multiple fields in EDC/CDMS?
When creating or editing a field, it is possible to make it dependent on only one field. However, using hidden calculation fields, you...
Read more >Multi level field dependencies - IdeaExchange - Salesforce
Ah, yes, making a field dependent on multiple controlling fields is not possible. I will add this to my product backlog for consideration....
Read more >One field is dependent on two fields - ServiceNow Community
Hi, I have category and subcategory choice fields on change form. subcategory field values depends on both type and category choice fields.
Read more >Dependent field setup based on multiple fields - DataTables
Hi, All the dependent api examples pull in one fields value and then you make decisions based on it that can effect other...
Read more >creating multiple field dependencies - Atlassian Community
we are working to get other teams on to Jira Service Desk. One of the questions they asked is how extensively we can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another solution is to rely on
fieldChanges
which emit the field options when they got resolved (https://github.com/ngx-formly/ngx-formly/issues/2350#issuecomment-658158267) but you should declare options inexpressionProperties
instead:Observable type
yes something like that.