Save Form Doesn't Save any information in the Form (Web)

I have a form wherein I can fill up information, but once i pressed the save button it saves the document. But once the document is saved the information i have entered are all lost. The code on my save button is @Command([FileSave]).

When I edit the recently saved document the save button work.

Any suggestions on how i can save the information on the newly created form?

Subject: Save Form Doesn’t Save any information in the Form (Web)

Your save button should have the following code:

@command([FileSave]);

@command([FileCloseWindow]);

This combination on the web will provide the full save cycle.

From designer about FileCloseWindow:

You can use this command with Web applications, as long as you enable the “Allow Javascript on the Web” setting on the Basics tab of the Database Properties box. Precede this command with @Command([FileSave]) to simulate a Submit button.

Subject: RE: Save Form Doesn’t Save any information in the Form (Web)

I tried appending the @Command([FileCloseWindow]) but to no avail it only prompted a page with “Form Processed”. And as I look at the recently saved document the fields are still blank.

Subject: RE: Save Form Doesn’t Save any information in the Form (Web)

The Form Processed message is the default message you will receive unless you redirect the user in a WebQuerySave agent or using a $$Return field.

When you say that the information is lost, do you mean that the the document does not save at all or it saves but the fields are blank? Have you checked the document properties in the client as the fields may be saved but just not displaying in the document due to hide when formulas?

Subject: RE: Save Form Doesn’t Save any information in the Form (Web)

Fields are blank even in the Notes Client. The browser just saves a blank document.

Subject: Are they domino fields, or fields you entered as HTML?

If you create a document using the form in the notes client do the fields save? Do the Fields have any input translation formulas? Does the Form have an webquerysave agents?

Subject: RE: Are they domino fields, or fields you entered as HTML?

Yup, the field are saved when notes client is used. No the fields have no input translation formula. Yes the form does have webquerysave event agent. And the fields are domino fields.

Subject: RE: Are they domino fields, or fields you entered as HTML?

Do the fields save if you take out the webquerysave agent?

Subject: RE: Are they domino fields, or fields you entered as HTML?

Nop, the fields still doesn’t save. But I think I have found the problem I removed a subform and it worked already this subform contains javascript code. Do you think there is something wrong with the javascript code which is preventing the saving of any data?

Here is the Javascript Code in the subform:

Skip to main content
Skip to navigation
<p class="access">The access keys for this page are:</p>

<ul class="access">

	<li>ALT plus 0 links to this site's <a href="http://w3.ibm.com/w3/access-stmt.html" accesskey="0">Accessibility Statement.</a></li>

	<li>ALT plus 1 links to the w3.ibm.com home page.</li>

	<li>ALT plus 2 skips to main content.</li>

	<li>ALT plus 4 skips to the search form.</li>

	<li>ALT plus 9 links to the feedback page.</li>

	<li>ALT plus N skips to navigation.</li>

</ul>

<p class="access">Additional accessibility information for w3.ibm.com can be found <a href="http://w3.ibm.com/w3/access-stmt.html">on the w3 Accessibility Statement page.</a></p>
<p class="skip"><a href="#content-main">Jump to main content</a></p>

<div id="prt-w3-sitemark"><img src="<Computed Value>id-w3-sitemark-simple.gif" alt="" width="54" height="33" /></div>

<div id="prt-ibm-logo"><img src="<Computed Value>id-ibm-logo-black.gif" alt="IBM Logo" width="44" height="15" /></div>

<div id="w3-sitemark"><img src="<Computed Value>id-w3-sitemark-large.gif" alt="Link to W3 Home Page" width="266" height="70" usemap="#sitemark_map" /><map id="sitemark_map" name="sitemark_map"><area shape="rect" alt="Link to W3 Home Page" coords="0,0,130,70" href="http://w3.ibm.com/" /></map></div> <!-- w3-sitemark -->

<div id="site-title-only"><Computed Value></div><!-- site-title-only -->

<div id="ibm-logo"><img src="<Computed Value>id-ibm-logo.gif" alt="IBM Logo" width="44" height="15" /></div><!-- ibm-logo -->

<div id="persistent-nav"><a id="w3home" href="http://w3.ibm.com"> w3 Home </a><a id="bluepages" href="http://w3.ibm.com/bluepages/"> BluePages </a><a id="helpnow" href="http://w3.ibm.com/help/"> HelpNow </a><a id="feedback" href="<Computed Value>/Feedback?OpenForm&PageTitle=<Computed Value>&Country=<Computed Value>"> Feedback </a></div><!-- persistent-nav -->

<div id="header-search">

	<form action="<Computed Value>" method="get" id="search" name="search">

	<table cellspacing="0" cellpadding="0" class="header-search">

		<tr>

			<td class="label"><label for="header-search-field">Search w3</label></td>

			<td class="field"><input id="header-search-field" name="qt" type="text" accesskey="4"/></td>

			<td class="submit"><label class="access" for="header-search-btn">go button</label><input id="header-search-btn" type="image" alt="Go" src="<Computed Value>btn-go-dark.gif" /></td>

		</tr>

		<tr>

			<td></td>

			<td colspan="2" class="limiter">&nbsp;</td>

		</tr>

	</table>

	</form>

</div>

<div id="browser-warning"><img src="<Computed Value>icon-system-status-alert.gif" alt="Error" width="12" height="10" /> This Web page is best used in a modern browser. Since your browser is no longer supported by IBM, please upgrade your web browser at the <a href="http://w3.ibm.com/download/">ISSI site</a>.</div>

Reopen domino form, then use javascript to copy its attributes accross.

Subject: RE: Are they domino fields, or fields you entered as HTML?

I solved this by using a computed subform after the hidden fields on top of the form. Computed subform uses the following: @If(@ClientType = “Web”;“sfmW3TMasterHeader”;“”)Followed by w3tFormKey and w3tFormBegin fields.

Then I created editable fields.

And finally w3tFormEnd field followed by another computed subform using: @If(@ClientType = “Web”;“w3 Footer”;“”)