Explore the community Forums Lectora Lectora Questions & Answers text box with random numerical action

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #283163 Score: 0
    Profile photo of caenbera
    caenbera
    Member
    @caenbera

    Hi,

    Anyone knows how to make a textbox with a number to go random every time you click on the keyboard the key Enter?

    #286738 Score: 0
    Profile photo of lauram
    lauram
    Member
    2 pts
    @lauram

    1. Add a text block to the page where you want the random number to appear.
    2. Add an action to the page, select On Keystroke trigger, select the Enter key in the Key field.
    3. Select the action of Change Contents and the text block as your target.
    4. In the text field, select the small pop-out arrow to open the advanced text editor.
    5. In there you’ll see a button that says Random Value. Enter the Min and Max values and click OK.
    6. Lectora will format the RAND expression appropriately in the editor. Click OK.

    That’s it!

    [ATTACH=CONFIG]522[/ATTACH]

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.