Create Button to register sales visit

Create Button to register sales visit

Hi,

I need a function for a button that I have created. When the sales person clicks the button, two fields must be updated:

VISIT (list field) --> updated from NO to SI
Date visit (date field) --> updated with the current date

Thank you