I am building a shipping tracking application using SC5. I have a form “createshipment” where the user enters most of the data, but only up to 5 lines of item detail.
I want to be able to ask the user “Enter more items before creating bill?” then redirect them based on “Yes” or “No” answer.
Example:
- User enters FROM/TO information, and 5 lines of packages detail (pieces,weight,L,W,H)
- After submitting form (insert data) the user should see “Add more items?”
- If user clicks “Yes”, then new form loads (shipmentdetail) to enter unlimited lines of packages (pieces,weight,L,W,H)
I did figure out how to (a) insert the data in ‘createshipment’, then (b) load the ‘shipmentdetail’ form with
SELECT id FROM shipment WHERE userid = [s_userid] ORDER BY id DESC LIMIT 1
(That will only load the last shipment id for the current logged in user)
Anyone know how to achieve this extra “Yes”/“No” form in-between the 2 other forms??