Original content

Protected by Copyscape Plagiarism Checker

Saturday, September 18, 2010

Sample confirmIT coding

Below is the sample code to know how coding will look like in confirmIT.

if( f('Q1').get() == '1' )
{
f('Q2').set('1');
}

  • In the above code f(‘Q1’) refers to the single choice question object having the question id ‘Q1’.
  • f() is used to refer the objects in the confirmIT.
  • f(‘Q1’).get() == ‘1’ means first choice of the single choice question is selected.
  • f(‘Q2’).set(‘1’);  this statement sets the first choice of the single question object haveing the question id ‘Q2’.