See if this is what you need. On the button click, it will popup an alert box 
to ask the user if they are sure they want to delete the record. When "OK" is 
clicked, the form will be submitted. If "Cancel" is clicked, nothing will 
happen.
Note the onClick attribute of the link:

<input
type="button"
value="Delete This Record"
onClick="javascript:
        if (confirm('Are you sure you want to delete this record?')) {
                document.forms.YourFormName.submit();
        }"
 />

Good Luck,
Mike.

On Saturday 16 July 2005 11:20 pm, Tim Starling wrote:
> Hi everyone,
>
>
>
> I have a form that the owner wants to have a delete button on a the details
> page of a record but not actually delete the record.  He wants it to set
> the activeYN field in the database to 0 or not active.  He also wants a
> Widows pop up to ask them to confirm that they want to "delete" the record
> before the field is set to 0.
>
>
>
> I can do the setting of the field to 0 but what is the easiest way to get
> the pop-up box confirmation?
>
>
>
> Thanks,
>
> Tim
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to