I have a question related to this topic.
In your example above (point number 2) it is not clear if “alter” refers to the input field name or its id, or the html file. I do not understand how you retrieve the value from html input field.
Here is what I need to do:
I have an html file with multiple text input fields and I want to allow participants to move on to the next page if (1) they have completed all fields and (2) if one of these fields equals exactly 100 (it’s an input field whose value is automatically computed according to the value of two other fields). Can you help me with adding condition (2) to the code below?
This is the input field in my html document “demographics”:
<input name="useTotal" type="text" id="sum" class="obligatory" readonly="TRUE">
And here is the script on PCIbex with condition (1) implemented:
newTrial("consent_demog", newHtml("demographics", "demographic.html") .checkboxWarning("Required") .radioWarning("Required") .inputWarning("Required") .print() .log() newButton("Continue") .print() .wait( getHtml("demographics").test.complete() .failure(getHtml("consent").warn()) ) )