Hi
You could use the Replace function to take the value from your form and update the text to replace where you said ENTER CUSTOMER REF
replace(replace(yourtotalstring, 'ENTER CUSTOM REF', 'valuefromform'), 'ENTER ORDER REF', 'valuefromform')
Please mark as the answer if this helped you