Hidden value on delete getting wrong id
Was testing an administration page and realised that on the 'results' page delete button was functioning but no delete was being made.
Changed the 'WADADeleteRecordID' from hidden to text to see whats going on and realised that for some reason it was assigned with a wrong id. For example my record id had a value of 16 but this field was getting a value of 12. I re-binded the id value to this field but same thing was happening.
So the real problem is that button is functioning but because of the wrong id that the hidden field is getting, script is deleting wrong record or not deleting anything.
Thank you
PS Attaching file