Redirect in web query open

Hi, Iโ€™m working with notes form in web, I have this case where I had to create a second form (second version) of another form to make some changes.

The new form url is work beautiful in web, but, some of my users has the old form url in their favorites, is there a way I can put a redirect code in the old form, to the new form?

Any ideas? :slight_smile: :slight_smile:

Please help.

Sunny

Subject: Redirect

It would perhaps have been a good idea to give the new form the same name as the form it replacesโ€ฆ

Here are a couple of suggestions:

  • Rename (or delete) the old form and give the new form an alias identical to the old form.

  • Add a HTML META tag with a browser redirect.

  • Use Javascript to redirect the user to the new URL.

I would suggest the first approach.

Subject: Redirect

Hi, Thanks for your reply, this was solved as follows:

In the HTML Head Content event of the old form put :

@If(@IsNewDoc;

"<META http-equiv="refresh" content="0;URL=http://server/folder/database.nsf/NewformAlias\โ€œ>โ€;

โ€œโ€)