I have a mind map, with approximately 20 options (little squares). I would like to create an interactive file, where I can click on each option (square) and open a slide with a fact sheet for this option. Then, in each fact sheet, I would like to have two buttons: a yes and no. If yes, then I should be redirected to the initial mind map with no alterations. If no, then I am redirected to the initial map, but the map no longer has the square that I clicked in. This means that I would like to hide the figure (which is in another slide) and be redirected to this slide, where the figure no longer is available. The process would restart and continue until all the little squares were evaluated.
Does anybody know if this is possible and how could I write this code?
I am not very familiar with programming and this is was the 'best' option I found so far. I am also open to new ideas
For example, if the square you click on was named "map_1_cb" and the slide you jump to for the description was name "map_1", you could execute:
window.cpCmndGotoSlide = 1; //slide number - 1
window.cpCmndResume = 1;
Or you could just create an action:
On the no button, just hide the square and jump back to the slide in a shared action.
Why not use a shared action?
Agree Lieve, that's what I said in the last 2 lines of my post.
The JS would only be beneficial if it was running in the background in an external file and listening for button clicks.
If not, you would need to execute JS just as many times as a shared action.
Sorry, David, I was just answering by mail on my phone, didn't see your answer. Sometimes I wonder why people like to make it complicated when there are simple solutions.
Not a problem Lieve. I agree.
Hi! Sorry for my late response! The shared action worked perfectly and indeed was much easier. Thank you very much for the help.