Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2018-11-21 06:52 AM
Hello!
Is there any way to catch value list selection change? Or fields change in general?
I found, that when VL is dropdown, on value selection there is one DOM change (div with phui_combobox_selectable class).
Is there something similar for other types of VL? I haven't found any.
Best regards,
Sergei
2018-11-21 08:36 AM
This is working just fine in 6.4 SP1 P3:
<script>
Sys.Application.add_load(function() {
$('div[id*="' + 19686 + '"]').change(function() {
alert('dropdown test');
});
});
</script>
2018-11-21 07:59 AM
Have you tried something like this for dropdown?
$('div[id*="' + Id + '"]').click(function() {
});
$('div[id*="' + Id + '"]').change(function() {
});
2018-11-21 08:21 AM
I've tried your code with console log, but nothing happened.
Neither .click or .change.
$('div[id*="' + 15798 + '"]').change(function() {
console.log('dropdown test');
});
2018-11-21 08:30 AM
Interesting, it is working for me. And when I searched in the community, it seems someone else also made it work:
Values List Custom Object OnChange Event
Though, I am using not the latest version of Archer.
2018-11-21 08:36 AM
This is working just fine in 6.4 SP1 P3:
<script>
Sys.Application.add_load(function() {
$('div[id*="' + 19686 + '"]').change(function() {
alert('dropdown test');
});
});
</script>
2018-11-21 08:44 AM
Yes, with "Sys.Application.add_load" works.
Any ideas how to make this work with radiobutton one?
2018-11-21 09:18 AM
Change div to input.
2018-11-22 02:32 AM
That helped, thanks!
2018-11-22 02:35 AM
Anytime
2019-07-22 02:57 PM
Hi Ilya,
How do we alert for a specific value selected from the Dropdown list.
The following code alerts for any change in the dropdown list.
$('div[id*="' + 19686 + '"]').change(function() {
alert("Hello");
}
I wanted to combine change function with selected option.