It depends on where and when you want set the value. So if you could give some additional info...
Main Topics
Browse All TopicsI'm relatively new to Lotus Notes, how do I write an if statement so that is one field equal y then the other field is populated by today's date? I need to get this done immediately, so I assure you that I will give you 500 points and an A.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The default value for a field is used only when a new document is created. So if you want to set a field at a later stage, you need to set it differently. I assume you don't want users to manually change the date_confirmed field, so it should be a Computed field, with a value like this:
@If(confirmed="y" & !IsTime(date_confirmed); @Today; date_confirmed)
Which means: if the value of the field 'confirmed' is 'y' and the field date_confirmed (i.e. this field) is not a time value, then use the current date, else replace this field with this field.
And sorry, I had a typo in my first post: it should be @Today, it's a function in Formula language.
Ok..I did this and it worked : @If(ZeroBundleConfirmed="Y
However, now I have to update an agent. The code is as below
FIELD ZeroBundleConfirmed := ZeroBundleConfirmed;
@If(Except="Yes";@Prompt([
I want to updated the DateConfirmed equal to today's date when the ZeroBundleConfirmed is set to yes.
Business Accounts
Answer for Membership
by: sjef_bosmanPosted on 2005-03-18 at 05:31:51ID: 13574150
An IF in what language? Formula, LotusScript, Java or JavaScript?
Assuming Formula, and that otherfield is Computed, with value otherfield:
@If(onefield="y"; @Setfield("otherfield"; Today); "")