Skip to main content
Participant
October 4, 2017
Question

Specifying a range in a Captivate Text Entry field

  • October 4, 2017
  • 1 reply
  • 173 views

Does anyone know if it is possible to specify an acceptable range within a text entry field in Captivate?

For example: If someone selects an option and that option requires a text entry range between 0 - 1000 but no greater. But another users selects another option which requires text entry between 0 and 2000. I'd like to set a conditional script to control the range can be entered into the text entry field.

I appreciate any assistance you can provide.

This topic has been closed for replies.

1 reply

Lilybiri
Legend
October 4, 2017

Could you explain more? The only possibilities to limit entries for a TEB are under the button More options:

That allows you to  limit to Numbers, but not to specify a range. You'll have to use the action triggered by the Submit button to check the entry, and if it is not within the range to clear the TEB and ask the user to start again.

Participant
October 5, 2017

Thank you for your response. I'm building an activity that allows a user to designate an amount they want to set aside for a savings account. That amount can be any amount (in whole numbers) between 0 and 1000 (for example). I was hoping to simply be able to program the text box to accept any number between and including 0 - 1000. The only thing I seem to be able to do at this point is click + type 0 and repeat to 1000. That is simply too laborious. But I do want to system to check that the user does not try to save more than the range. So, they should not be able to enter any number over 1000.

Lilybiri
Legend
October 5, 2017

You will need to create a conditional action in that case. I suppose the TEB is not validated, since there is no "correct number". You can trigger the conditional action by the On Success event of the TEB. Have a feedback message ready that is hidden in output, will call it Tx_warning. The variable associated with the TEB I'll label it v_TEB:

IF v_TEB is greater than 1000

   Show Tx_warning