The Save as Draft button saves a partial document with no field validation. The Submit button saves a complete document and runs field validation.
I have a field defined on the form called SaveType that is text, editable and has a default value of "", no translation formula and no validation formula.
In the onClick event of the Save as Draft button I have the following code:
document.forms. SaveType.value="Draft"; doVal(document.forms, false);
The save occurs correctly but the SaveType field is not set to "Draft."
Can you tell me what I'm doing wrong here?
Not knowing what the page looks like, verify that the form is the  form on the page. If it isn't, you can add a name to the HEAD content of the form so you can use the formname rather than forms.
Do you have comments on this Ask the Expert question and response? Let us know.
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response. Continue Reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead. Continue Reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.