Web\Client Formula Box

Hello,

This has to to with the Web.

I have a button. For an example:

In the Client Formula Window(Using Formula) I have it saving the Document.

In the web formula window(Using JavaScript.) i have an Alert box to pop up and ask if your sure you want to save.

My question. Do i have to Choose Web or Client. Or can I use both of them at the same time?

I hope i’m making myself clear.

Thanks

-Jordan

Subject: Web\Client Formula Box

That’s why you get to choose – you can have the same button/event using different code in each client type. Select “Client” and add some formula stuff, then select “Web” and throw your JavaScript in there. In R5, you’d need to have two different buttons with hide-whens to do the same thing.

Subject: RE: Web\Client Formula Box

I wanted to be able to use both and for them to work together on the web.

They would click on the button, and an alert would come up, and if they said yes, then the formula part of the code would save the document. But your telling me thats not how it works. Thats to bad. That would have been great.

Subject: RE: Web\Client Formula Box

It can’t work that way, ever. Formula needs to happen on the server, JavaScript in the browser. You can always slip your confirm into the form’s onsubmit event.

Subject: RE: Web\Client Formula Box

I have more than one button on the form, So putting the confirm in the OnSubmit section of the form wouldn’t work right?

-Jordan