How to pass data through a data elememt with custom code using DTM?

Avatar

Avatar
Validate 10
Level 2
dariusd91806962
Level 2

Likes

5 likes

Total Posts

38 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
dariusd91806962
Level 2

Likes

5 likes

Total Posts

38 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
dariusd91806962
Level 2

08-11-2016

I am trying to capture a value from an input box by through a data element in DTM. The problem i am having is, I do not know how to pass the data from the data element to the event rule etc. In other words when i captuer data ausing custom code in an event rule. I can capture it and immediately pass it to a variable like an s.prop or evar etc. but when creating a data element you cant send it to an s.prop or evar..

Here is my script.

 

$("input[name='loanAmount']").mouseleave(function(){ $("input[name='loanAmount']").val(); satellite.getVar('loanAmount'); return true; });

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

09-11-2016

Hi Darius,

Please see the below link for information on  How to create event based data element .

http://help-forums.adobe.com/content/adobeforums/en/marketing-cloud-forum/activation.topic.html/foru...

Thanks & Regards

Parit Mittal

Answers (1)

Answers (1)

Avatar

Avatar
Validate 10
Level 2
dariusd91806962
Level 2

Likes

5 likes

Total Posts

38 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
dariusd91806962
Level 2

Likes

5 likes

Total Posts

38 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
dariusd91806962
Level 2

15-11-2016

I did read the link you suggest and tried both of these scripts, but still didn't work. Please advise I really need to make this work.

$("input[name='loanAmount']").mouseleave(function(){ var Amount = $this.attr("input[name='loanAmount']").val(); _satellite.setVar('loanAmount',Amount); _satellite.getVar('loanAmount'); Return true;
I also tried this. var Amount = $this.attr("input[name='loanAmount']"); _satellite.setVar('loanAmount',Amount); _satellite.getVar('loanAmount'); Return true;