I have a select dropdown (manually populated)
dependent of another select dropdown (normal, lookup table values)it did work ok on first page load, but it is suposed to change when parent field change, but didn’t work…
But, I assume that I missing some onchange event in parent field, prbably in Client SIde Events, or in Startup script, or both… that made $listoptions of child field be recalculated…
Any clue?
The closest approach for this is by using Dynamic Selection List feature as arbei suggested above. Please read this topic from PHPMaker Help menu for more info and example.
It doesn’t work… at least not like I want.
What I need is to know where should I add the event to update the list on change parent field.
And, if is possible, what should say that onChange event…
$document.on("addoption", function (e, args) {
// console.log(e, args); // Check arguments and use them to set the option as valid/invalid
// args.valid = false; // Returns false if invalid
});