Successful Form Submission script only working on edited
This seems to be very odd, as I created a scratch pad application to test this, and I couldn't reproduce the scenario. However, in our main application, when a new booking is submitted the Successful Form Submission only fires if you recall and update the booking, not when the booking is first saved.
Below is the BookingSaved event as seen in the IDE.
- BookingSaved as "BookingSaved"
- {
- type = form
- form = PrintBooking
- record event = on add or edit
- on success
- {
- actions
- {
- custom deluge script
- (
- info "Starting Save Booking cleanup";
- //pb = PrintBooking[ID == input.ID];
- //thisapp.PriceCalculation.CalculatePrice(pb);
- //info "Booking Saved " + pb;
- )
- }
- }
- }
This is the one that I put on my scratch pad application (that has one field, which is an account integration).
- FormSubmitted as "FormSubmitted"
- {
- type = form
- form = Booking
- record event = on add or edit
- on success
- {
- actions
- {
- custom deluge script
- (
- info "This is the form submission";
- )
- }
- }
- }
I can't see that there's any difference between the two. Does anyone know why it's not firing, and what I can do to catch the cause so that I can deal with it. I don't have any active on validation events for either of them.