Reply
Highlighted
Visitor
Posts: 3
Registered: ‎06-09-2016

Tag

[ Edited ]

I am exploring the Load Rules to configure a custom if condition to map it to a Specific Tag but I didn't find any, is there a way to create load rule based on the below condition?

if(typeof($('input[name="language"]').attr('value'))!='undefined' && $('input[name="language"]').attr('value')!="ENGLISH"){ console.log("Fire the Tag") }

Reply
0 Kudos
Occasional Contributor
Posts: 115
Registered: ‎12-11-2015

Re: How to configure a Load Rules based on a Custom If Condition

[ Edited ]

This is a very typical use case for an All Tags, Before Load Rules extension, @msugumar.

Ordinarily you would create a UDO element called "non_english" or similar, and then use a BLR extension to set the value of that variable depending on the presence of a language input field whose value is not English. Then use that variable as the basis for your load rule.

VIP
Posts: 202
Registered: ‎01-04-2016

Re: How to configure a Load Rules based on a Custom If Condition

Original post written in invisible ink? 

Reply
0 Kudos
Employee Emeritus
Posts: 1,019
Registered: ‎08-26-2015

Re: How to configure a Load Rules based on a Custom If Condition

[ Edited ]

Hello @mitchellt. How's this? pointing-up.png LOL

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.
Reply
0 Kudos