Loading...
 
Features / Usability

Features / Usability


Conditional question in pretty tracker

posts: 11

Hi there,

I'm having some trouble implementing conditional questions using pretty tracker. The idea is that, based on the answer to a question, a given div should be displayed. I'm using the below to accomplish this, but without any success.

Within the Jquery tags, the hiding of the DIV works perfectly. What's not working is the "fade in." I added an alert to try and help me see what was happening, but it seems like I'm never triggering it. My assumption is that I've used the incorrect name? I'm currently using 'Ins_xx' where xx is the field ID, but that doesn't seem to be working.

Copy to clipboard
{SPLIT(colsize=600|1000)} __Client Name__---{$f_133} @@@__Age__---{$f_149} @@@__Referral Type__---{$f_152} @@@__Occupation__---{$f_134}{SPLIT} {DIV(type="div",id="Code3")} {SPLIT(colsize=600|1000)} __Year__---{$f_138} @@@__Make__---{$f_135} @@@__Model__---{$f_137} @@@__MMCode__---{$f_147} @@@__Value__---{$f_139}{SPLIT} {DIV} {JQ()} $("#Code3").hide(); $("select[name='Ins_152']").change(function(){ alert("Function Test"); if ($(this).filter(":checked").val() === 'Claims') { $("#Code3").fadeIn(); } }); {JQ}

posts: 11
Thanks, that works great. Just wondering why the Jquery I used didn't work as expected? As far as I can tell, I followed the documentation on the "pretty trackers" page.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting