dropdown.log

description

Will add a line to the results file for the current trial reporting what option was selected.

syntax

getDropDown(ELEMENT_NAME).log()

alternate(s)

  • getDropDown(ELEMENT_NAME).log("first")

  • getDropDown(ELEMENT_NAME).log("all")

notes

  • If you pass “first” as the argument, it will report the option selected upon first selection, ignoring further selections. If you pass “all” as the argument, it will add a line for each single occurrence of a selection. By default (no argument) it will only add a line for the value selected at the end of the trial.

example(s)


@newDropDown("language" , "First language")
@    .add( "English" , "French" , "Tagalog" )
@    .print()
@    .log()
  • Adds a line for the value selected from the dropdown at the end of the trial.