Making sure there is input

drew wrote:

Hi I am new to lectora and I am building a project for a client. Right now I have two questions on a page, and I am trying to tell lectora that user MUST enter text before going to the next page. I am not sure on how to do this.While playing around I found the Condition tap in the actions. I have it all filled but I am not sure what goes in the values box. Is there anyway I can check to see if there is text put into these two fields before they goto the next page? I'm presuming a couple of things: 1. You're using two separate form elements (entry fields) to collect the data. Each field will store input in a separate variable. 2. You're using a button to move to the next page after the data has been entered. If so, try adding a conditional action to the button that moves you to the next page. On the Condition tab you should enter the following: Variable: the name of the variable for the field Relationship: Not Equal To Value: this field should be left blank Click the Multiple Conditions button and repeat for the second variable. Make certain to click the radio button for "All of the Following" to ensure that both conditions must be met.Now, when you leave either field blank the button will not move you to the next page. You might also want to add another action to the button display an appropriate error message to the user when the button is pressed and either of the fields is left blank.

Discussions have been disabled for this post