Upvote 1

Close pop-up screen by clicking a button instead of double-click

Answered Victor Conesa 13 years ago

I want to close a pop-up screen by clicking a button (see the image in attachment : the button "OK" or "Annuleren" = Cancel).


Also i want to remove the title "Double-click here to close" from the pop-up screen.

Best Answer
photo

To close a 'pop up' you create in your prototype, just create an "On Click" + "Hide" event for a button, with the 'pop up' as the target to be hidden.

Replies (5)
photo
1

Just define a navigation event in the ok and Annuleren buttons to the screen that launched the popup.

photo
1

2f510b68c5f8cff7d44d50122e42bdb2

photo
1

What is a navigation event? I know the event "on Click" and then i can use the interaction "Link to"; and i make then a link with the screen that has called the pop-up screen (see image).


But this method has a great disadventage : on the screen that has called the pop-up screen are fields (not linked with data) and this fields are cleared because the page is reloaded. This is not the case when i close the pop-up with the double-click on the title.


5e08d118ecf681610e24c1c2223e9362

photo
1

The navigation event is the Link to. I'm afraid you will have to use variables to maintain the values of your inputs and define onPageLoad events so that when the page is reloaded (when the pop up closes) the values from the variables are set to the input fields.

photo
1

To close a 'pop up' you create in your prototype, just create an "On Click" + "Hide" event for a button, with the 'pop up' as the target to be hidden.

Leave a Comment
 
Attach a file