Skip to main content
Inspiring
October 28, 2015
Answered

CP9: Multiple Text Entry Boxes - 1 Submit button

  • October 28, 2015
  • 1 reply
  • 362 views

Hi

I have multiple text entry boxes (TEBs) and 1 submit button.

For each TEB i have a:

  • variable for the user's text entry - v_teb1 (associated with the TEB).
  • Variable for the correct answer - v_teb1_ans  (doing it this way because i want to reuse Advanced action)

I have created an advanced action (assigned to Submit button) to check user input against answers.

So if the answer was "Home" or "home" - how can i test for this - create two answer variables - "v_teb1_ans_a", "v_teb1_ans_b"

Is there an easier way?

Also with "User Validation" are the "Correct Entries" only used with "On Success" and to display Success, Failure captions

i.e. when Submit button displayed for each TEB, auto-submit is on, Enter keystroke is used?

Regards

Donal.

    This topic has been closed for replies.
    Correct answer Lilybiri

    Hi Donal,

    That is the problem with validating a TEB entry using an advanced action, there is no way to turn off case sensitivity. It will be possible if you use JS to change the given answer to all capitals before checking it.

    I don't understand your last question, sorry? Correct entries are used if you validate a TEB, but in your case validation is only done after all TEB's have been used, right?

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    October 28, 2015

    Hi Donal,

    That is the problem with validating a TEB entry using an advanced action, there is no way to turn off case sensitivity. It will be possible if you use JS to change the given answer to all capitals before checking it.

    I don't understand your last question, sorry? Correct entries are used if you validate a TEB, but in your case validation is only done after all TEB's have been used, right?

    donalallAuthor
    Inspiring
    October 28, 2015

    Hi Lieve

    Thanks for the answer - i thought that was the case.

    You answered the last question as well.

    Donal.