So setting the PT highly depends on how you populate the user inputs (it deferment if you connect a dataset via the editor, or retrieve the info from the memory or browser cache etc…)
Also if it’s a repeater the code should be adjusted to repeater items.