Hello,
I could so with some guidance for the following scenario:
I have 2 dependent dropdown, the first one has 3 values, each triggering 3 values on the second dropdown. I also have two fields (to, cc) that are bound to different rows depending on the value passed by the first select.
All is working fine.
I do have exception whereby for one particular value on the first select, I need the ‘to’ field to bind to a different table altogether. The idea would be to identify is the value one the first select is 1 (for example), and if so, then make an exception and bind to a different serverconnect.
How could this be achieved on the app connect side of things?
Thanks!
I’ve done some progress trying to implement a ternary operator. The first condition is applying correctly, but not the second (default) behavior.
I’d appreciate help to spot the incorrect code:
<select id="select_es_audience" class="form-control mb-0" name="select_es_audience"
dmx-on:changed="serverconnect_es_templates.load({});select_es_audience.value == 4 ? modal_es.form_es.es_to.setValue(serverconnect_current_escalation_qualifiers.data.current_escalation_qualifiers.eq_ces_to) : modal_es.form_es.es_to.setValue(serverconnect_es_templates.data.es_distrution_list[0].es_distribution_list_to)">
<option value="">Select audience</option>
<option value="1">Internal - Data</option>
<option value="2">Internal - PaaS</option>
<option value="4">Customer facing</option>
</select>
Okay, for anyone doing something similar in the future, I got it working by applying the condition to the input field:
<input type="text" class="form-control" id="es_to" name="es_to"
dmx-bind:value="select_es_audience.value == 4 ? serverconnect_current_escalation_qualifiers.data.current_escalation_qualifiers.eq_ces_to :serverconnect_es_templates.data.es_distrution_list[0].es_distribution_list_to">
1 Like