I have created the forms and added the two-option list one is group, and another one is cloud. based on the group selection its populating the cloud.
In my backend flow I am expecting to pass the Cloud-name instead of ID. If I am using the below one, I am only getting the ID of the cloud.
cloud=“<%=customOptions.cloud%>”
Thanks @Uthman_Eqbal …I have already applied the same but here the challenge is we need to show only specific clouds like azure or aws which is available in the forms if we go on this way we are not able to access that feature.
You can only get the cloud ID using the form method. If you are trying to ensure something like “'Only return Amazon type clouds”, you could do something like this in the option list translation script.
var i=0;
results = [];
for(i; i<data.length; i++) {
if (data[i].zoneType.code == "amazon") {
results.push({name: data[i].name, value: data[i].id});
}