Allow user to switch between form layouts

Hi,

I’d like to know whether there is a possibility to allow the user to switch between form layouts in a document.

Basically what I would like to do is when a user creates a document using form A, give them the ability to click a button on the form to switch to form B (open the same document with all the data in it, but using another form).

Any help would be greatly appreciated

Subject: allow user to switch between form layouts

You could just change the Form field

FIELD Form := “newForm”

or

NotesDocument.Form = “newForm”

or if you only have the two forms in your database you could select the “Include in Menu : Create” option on the first tab in Form Properties. This will list both forms in the “Switch Form” list in the View menu.

Subject: RE: allow user to switch between form layouts

Thanks, this works when saving reopening a document. Is there a way to switch in real time?

Subject: RE: allow user to switch between form layouts

You cannot change the form on a document that’s already open. You could close and reopen the document though as part of your action.

Subject: not true, use View - Switch Form from the menu or the @command equivalent

As long as the document in in read mode it will switch to the new form. If you put this @command into a button you may need to save and open the document first in read mode.

The change is temporary unless the document is edited and saved (the original form field is not changed.)

Howard

Subject: RE: not true, use View - Switch Form from the menu or the @command equivalent

Humm…so it does - I sit corrected )

It also switches forms in edit mode, as long as the document has not been changed.