You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
It provides a variable to read input values and a trigger for input changes.
However, in case you would like to adjust the "DOM Element" variable, I would still be willing to work on a fix for it.
Hi @MichaelRoosz . Thank you for taking the time to create this issue and share what you've worked on. As the DOM method is getElementAttribute I think that returning the attribute value makes sense. Maybe a new getElementProperty method should be added to the DOM class. What do you think @AltamashShaikh ?
@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.
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: