Custom form scripting for tracker Capture in 2.35

Hello community leaders,

Can somebody guide me to some docs or sample templates to do custom form scripts in tracker capture app.

My requirement is : I want to update a tracker attribute based on stage event DE values when user clicks complete. Program rules for assigning attributes during stage not working in 2.35. so custom script is the only way it seems?

Thank you so much in advance