Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 01:29 AM
Hi Ankur,
I tried your solution but in my code source i am blocked :
if (userType == "partner") {
if (answer["location"].length === 1) {
g_form.setValue("new_location", answer["location"][0]);
} else {
g_form.setValue("new_location", ''); // Aucune valeur trouvée, laisser vide
}
} else {
g_form.setValue('new_location', answer["location"]);
}
}
i dont' know how to say to select juste one selection when field location has juste one display
i dont' know how to say to select juste one selection when field location has juste one display