Gossamer Forum
Home : Products : DBMan : Discussions :

Add failure

Quote Reply
Add failure
Dear JP et al

Can anyone point me to a reason why I have lost the ability to insert added values when an addition fails?? For example, a user adds a record, the addition fails because they did not complete certain fields, the values that were entered are returned in the failure form so that the entire form does not have to be completed again. This used to work but since I have made some mods it does not!! The add failure form is returned empty

I have modified sub html_add_failure to:
if ($per_del)
{&html_record_form_admin (&get_defaults);}else{&html_record_form (&get_defaults);}

This is because I have 2 forms depending on whether the user is admin (per_del=1) or not.

TIA, Brian

Quote Reply
Re: Add failure In reply to
Answered this one myself!! Too eager with the Cut&Paste...

My modified sub html_add_failure SHOULD read:
if ($per_del)
{&html_record_form_admin (%in);}else{&html_record_form (%in);}