Skip to main content
slatone1
Known Participant
March 15, 2017
Question

How do you make text appear when the learner clicks on a button?

  • March 15, 2017
  • 1 reply
  • 3377 views

Right now I have the text boxes linked to the image so that when you click the image the text appears but I can't hide it if it hasn't been clicked. I've got four text boxes on top of each other and you can't read the text. Thanks for your help!

This topic has been closed for replies.

1 reply

Lilybiri
Legend
March 15, 2017

I suppose you mean a Text Caption (or a shape with text) when you say 'text box', not an interactive Text Entry Box?

The easiest way to do what you want is to group all the text containers in Gr_Text (CTRL-G).

Instead of a simple action, use a standard advanced (or shared) action with two commands:

    Hide Gr_Text

    Show Text_N

Beware: sequence is important, you first hide all text containers, and after that you show the appropriate text container.

Either you define both the group and the text caption as parameters for a shared action, or you duplicate this advanced action and edit the second command in each duplicate. Trigger them by the interactive object you are using now (shape filled with an image?)

slatone1
slatone1Author
Known Participant
March 15, 2017

Ok, I'm sorry. You're correct, I want to trigger text boxes to appear with an interactive object. I've grouped the text boxes together but how do I make the correct text box appear when the correct object is selected? When I'm in the properties of the text box, where do I find the two commands and how do I link it to the correct picture? 

Lilybiri
Legend
March 15, 2017

I thought you said that you already had the images turned into interactive objects, since you said "when you click the image the text appears"?

What did you use then to show the text caption (or shape)? Did you put a click box over the image, or filled a shape with the image, and turn on the option 'Use as a button'?  You need an interactive object, to trigger any action, whether it is simple or advanced.

In the dropdown list for the success action of your interactive object (click box or shape button filled with image), choose Execute Advanced Action. Click on the browser icon next to the blank field to open the Advanced Actions dialog box. It is a point and click programming language.

Give the action a name 'Image1' (each name needs to be unique), Standard action is automatically selected. Click in the second column of the big window, and choose Hide, then in the third column, choose the group. Similar for second line. Save the action, since it is the first it will be automatically be added to your first interactive object Success event.

Save the action, you can duplicate it with the top most icon, and then create the second action for the second object.