-
Notifications
You must be signed in to change notification settings - Fork 58
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
Variable type "DOM Element" cannot extract values of "input" tags #889
Comments
As a workaround I created a Tag Manager extension plugin: It provides a variable to read input values and a trigger for input changes. |
Hi @MichaelRoosz . Thank you for taking the time to create this issue and share what you've worked on. As the DOM method is @MichaelRoosz just skimming over your plugin, I think that it looks pretty good. You're always welcome to submit those triggers and variables in a PR for our tag manager repository. We're happy to look at any PRs that you'd like to submit. |
@snake14 A PR from @MichaelRoosz would be better, as it solves the problem |
@MichaelRoosz Will you be willing to send a PR for this issue ? |
@AltamashShaikh yes, I will take care of this next week |
When trying to extract the (current) value of an "input" tag, the "DOM Element" variable type will fail, even when configured to use the attribute name "value".
This is because we use "getAttribute()" to obtain the value, which does not return the current value, just the initial one.
tag-manager/javascripts/tagmanager.js
Line 789 in 961de62
I am willing to contribute a fix for this, but I would like to know if and how you would like to fix this.
The text was updated successfully, but these errors were encountered: