Skip to content

Instantly share code, notes, and snippets.

View WilCF's full-sized avatar

Wil Stevens WilCF

View GitHub Profile
<cml:group name='my_task' label='' only-if='skip:unchecked'>
YOUR TASK CML
</cml:group>
<cml:checkbox label="I didn't find any information" name='skip'></cml:checkbox>
I added an "aggregation=avg" to the cml:checkboxes element. I copied the job and ran it on the internal channel and submitted my judgments. The results came out in the hidden field "results_percentage", so at least that part works.
As for making test questions, I don't know how to do that, because as they said in their email, the choices are created dynamically in javascript. If he wants to completely re-do the way he's built the job, here's one idea I can think of.
For each unit in their csv, create new columns titled
"category_1_name"
"category_2_name"
"category_3_name"
"category_4_name"
Then split out the contents of the column "categories" into those columns. In the cml he would do
<cml:checkboxes label="" validates="required" instructions="" name="" class="" gold="true" aggregation="agg">
@WilCF
WilCF / gist:8345802
Created January 10, 2014 02:08
Liquid If Loop Example
{% if country == 'United Kingdom' %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;postalCode={{zip}}&amp;openAdvancedForm=true&amp;companyScope=CP&amp;locationType=I&amp;countryCode=gb&amp;distance=100">2.Search UK's LinkedIn for {{first_name}} {{last_name}} 100 miles from their zip code</a></div><br />
{% elsif country == 'Australia' %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;postalCode={{zip}}&amp;openAdvancedForm=true&amp;companyScope=CP&amp;locationType=I&amp;countryCode=au&amp;distance=100">2.Search Australia's LinkedIn for {{first_name}} {{last_name}} 100 miles from their zip code</a></div><br />
{% else %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;p