How to swap material using widget?

Hi SpynderYT,
Thank you for your reply.

the sofa is one object and the Floor is one object. One widget for Sofa and another widget for Floor.I have created Onclick buttons for the widgets. The issue is Begin here. I don’t know how to create triggers to execute widgets.