Clicking on diff button will change the info

Instead of using normal box —> TRY TO USE → a → LightBOX.
I think you will love it more, if you understand how to grogramm a LIGHTBOX.

I can imagine what you are trying to achieve and the best choice in your case would be a LIGHBOX (for sure).

  1. Add a LIGHBOX into your project. Mostly the lighboxes do have some shitty predefined stuff. DELETE all of that —> now you have an EMPTY-LIGHTBOX.

  2. Paste all elements you will want to use, like …
    a) textBox
    b) inputBox
    c) repeater
    d) dropdown
    e) and so on.

You will need just one of each element. The rest will be done by code.
Your Lighbox will open every time you make DATA-CHANGES and you load into the custom-defined LIGHBOX all data you need.

How to work with a LIGHTBOX, you will find here…
https://www.wix.com/velo/reference/wix-window/lightbox

You even can create severak different LIGHTBOXES.