can change the variables in form with sub- intent

hey everyone,

I made a bot that takes order details as a form and calculates the discount as a script after that. now I would like to know if it is possible to set a sub-intent to change a parameter in the form and jump to the script to recalculate the discount. If not, what is your suggestion to solve this problem?

best regards