Restting a hidden feild value

Hi guys,

I have a form with a hidden field on it with a defualt value of “1”. When the form is submitted an agent is launched. I want this agent to change the value of the hidden field to “2”.

I know this is really simple but my mind has just gone blank.

Any ideas?

Subject: Restting a hidden feild value.

@Set(“Fieldname”;“Value”)

Subject: RE: Restting a hidden feild value.

FIELD FieldName := Value

Subject: RE: Restting a hidden feild value.

Hi James, Harkpabst,

Both of these do not seem to work.

Subject: RE: Restting a hidden feild value.

Hi,

Forgot to mention that my agen is written in LotusScript

Subject: RE: Restting a hidden feild value.

Call docContext.ReplaceItemValue(“FieldName”, Value)

Subject: RE: Restting a hidden feild value.

… or

Call notesUIDocument.FieldSetText( “Fieldname”, “Value” )

Subject: RE: Restting a hidden feild value.

Nope.

Not with a hidden field … :slight_smile:

… and I suspect somehow, that Viraj might be talking about the Web anyway, although he didn’t tell us yet.

Subject: Restting a hidden feild value.

There must be a way that you would be getting a handle to your document within your agent, Viraj, irrespective of whether you are running it on the web or the Notes client.

So once you have got a handle to your document then all you need to do is something like this:

doc.FieldName =

Subject: RE: Restting a hidden feild value.

Not if the field name happens to be Authors or Save or ParentDatabase or $Revision or …