Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get selected values? #12

Open
tschopp-spear opened this issue Jun 13, 2022 · 3 comments
Open

How to get selected values? #12

tschopp-spear opened this issue Jun 13, 2022 · 3 comments

Comments

@tschopp-spear
Copy link

Is there a way to get the selected values in a javascript save event handler method? I'm trying this command and it's returning null:

var selectedVals = formContext.getAttribute("xyz_multiselectfield").getValue();

@NielsMinnee
Copy link
Owner

NielsMinnee commented Jun 13, 2022 via email

@tschopp-spear
Copy link
Author

Got it, thanks! It looks like this control can't be used when adding a new record and the ID isn't established yet. Is that correct?

@NielsMinnee
Copy link
Owner

That's true because it's an association between two id's. However in a different implementation it should be possible by using an 'after-save' event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants