How to get difference between before posting and after posting a form


I want to match the form fields value before posting the form and after posting the form so that I can get which value is changed.Can I do this using same struct in golang?

Thanks in advance.

Could you use hidden fields for original values and then create a hidden fields for each input you accept and compare which ones have changed?

1 Like

@joncalhoun I can not use hidden fields as I am binding the fields with their structs.So if I use hidden fields then I will have to add that fields to my structs also.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.