@alien4u I have a button on the customer record which loads the suitelet using window.location.assign and passes params for the record. Then a form loads with information to fill in. This is also sourced from the customers record via record.load if there is data there. Then user fills form in and presses submit. This then sends the details via
https.post to a finance company and we get a response from them which i use to either send error emails out or record a 201 response. I then have a redirect to customer record using the params from the post form and i pass a param to the record called
iwoca_sent
which i load on the UE to show a
pageinitmessage
.