Linking one artboard to two others, and randomizing which one it lands on

ui

#1

Hi there,

I am trying to write a script to link one artboard to two others in Adobe XD. I am trying to write a simple script for a plugin that would randomize the next page after a button is selected. For example, if there was a button on page 1 that reads “Flip a coin”, clicking that button would result in a random selection of either page 2 (“Heads!”) or page 3 (“Tails!”). Let me know if anyone knows the best way to access code that would let me randomize this interaction

Thanks,

Annie


#2

Hi @aeb685 , currently, the only UI entry point available is a modal dialog. You cannot add a click listener to an object on an artboard as you described. Could using a modal dialog work for this use case?