Validate a user input from textbox that displays data from a dataset

I’m trying to get the user to confirm or enter the same data which is in a textbox that displays data from a dataset in to the input field. Is there anyway to validate that the input matches the textbox data using code?

https://support.wix.com/en/article/corvid-about-validating-user-input-with-code
https://www.wix.com/corvid/reference/$w.ValidatableMixin.html