Skip to main content
wadec86139976
Participant
November 16, 2017
Answered

Changing multiple item states using singular SmartShape button click

  • November 16, 2017
  • 1 reply
  • 324 views

Hi,

I currently have a project that uses two smart shapes as buttons to navigate forward and back between text caption states, this allows me to provide carousel type step instructions without having multiple slides. I'm struggling to see a way of linking this smartshape button to additional objects such as an image, ideally a single click of the navigation arrow should take the user to the next text caption state AND advance the image state such that the text and image are 'in-sync'.

Is there a way of linking object states or having a single button advance many objects?

I can see that within the image state settings i can select a button which controls the state and its associated action but it doesn't appear to work as i can only nominate 1 button. I believe this is because I have my smartshape set to "on success: Go to next/previous state; Text caption"

This topic has been closed for replies.
Correct answer Lilybiri

Not sure to see the real problem. Why don't you use two mutlistate objects: one with the images, and another with the texts? That way you'll need only one advanced action with two commands:

   Go to Next State   object_image

   Go to Next State    object_text

Create this advanced action, and tirgger it by the Success event of the button, command Execute Advanced Action

1 reply

Lilybiri
LilybiriCorrect answer
Legend
November 16, 2017

Not sure to see the real problem. Why don't you use two mutlistate objects: one with the images, and another with the texts? That way you'll need only one advanced action with two commands:

   Go to Next State   object_image

   Go to Next State    object_text

Create this advanced action, and tirgger it by the Success event of the button, command Execute Advanced Action

wadec86139976
Participant
November 16, 2017

Thanks, I had not previously used advanced actions and scripts - as such I was unaware that my previous method of using multistate objects was my limiting factor.

Previously I had simply set my smart shape as below:

As such I could not point at two objects, specifying the advanced actions as recommended:

Allowed me to save a script called NextState that impacted two multistate objects by modifying the button action to:

Hopefully the screenshots will help anyone else with a similar issue, although straight forward the advanced actions aren't immediately the most intuitive to use.

Lilybiri
Legend
November 16, 2017

I see that you are in CP£2017, would have posted a screenshot of the action if I had known that. The Advanced actions dialog box has been refurbished in this release, as I described in this blog post:

Advanced Actions Dialog box in Captivate 2017 - Captivate blog

Hmmm, I see you are in a responsive project with Fluid Boxes and that this button is unlocked from the fluid box. Is that really what you want?