Multiple dependent Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2019 04:33 AM
Hi Friends,
I have below incident form which are all dependent values. Up to "Place" field , I have defined Choice as per dependent value , but now same "Types of services" are present in different places with different "Service Identifier" , I meen both the values are dependent on Place value.
I have create one onChange client script as below, which is not working.
Can any one help me out.
Thanks
Nayak
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var place = g_form.getValue('u_location');
var stype = g_form.getValue('u_type_of_service');
if(place == "SARPAVARAM" && stype == "Global VPN") {
g_form.setValue('u_service_identifier',"091KAKI623006982554");
g_form.setValue('u_service_identifier',"091KAKI623012998901");
} else if(place == "Madhurawada" && stype == "Internet Access Service") {
g_form.setValue('u_service_identifier',"091HYDE030005406685");
} else if(place == "Madhurawada" && stype == "Global VPN") {
g_form.setValue('u_service_identifier',"091VISH623006982519");
g_form.setValue('u_service_identifier',"091VISH623006982484");
} else {
g_form.setValue('u_service_identifier',"1"); }
}
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 08:49 AM
Hi,
That would work if there is a table in the backend, otherwise if there are only few choices to be shown up, then creating table is not required I believe.But yes, maintaining a table could be easier to maintain and update any values on the go quickly if any updates are required in future for the choice values.
Thanks.
P.S. Mark Helpful or Correct if it is useful.