{} makes problems any ideas?

More
2 years 9 months ago #117365 by LS_SR
LS_SR created the topic: {} makes problems any ideas?
Hello

I have a tracking code on the 'thank you page'.

A part of the trackingcode seems not to work proper within limesurvey.
PostAffTracker.setAccountId('default1');
        var sale = PostAffTracker.createSale();
        try { PostAffTracker.track();} catch (e) {}
 
    }

The {} is converted into <span style='background-color: #eee8aa;'></span>

Any ideas how I can solve my problem?

Please Log in to join the conversation.

More
2 years 9 months ago #117370 by holch
holch replied the topic: {} makes problems any ideas?
How do you insert the tracking code and where do you insert it? Because this looks like you are using some kind of editor (probably the built in WYSIWYG editor in Limesurvey), as the brackets are subsituted by html code.

One other thing:

{} is reserved for the Expression Manager. Everything that is within this type of brackets is interpreted as an expression. Only if there is a space before or after, then not. This is thw workaround for still using these brackets for Javascript.
manual.limesurvey.org/Expression_Manager#Syntax

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 9 months ago #117487 by DenisChenu
DenisChenu replied the topic: {} makes problems any ideas?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!