Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

What's wrong with this formula???

I have a form that has 2 fields: ReviewerList and From. The ReviewerList field is of type Text (computed). Its value depends on whether the document is a new document or
an edited document.

If it's a new document, its value will be "Joe Average". If it's an edited document, its value will be whatever's in the From field.

The formula for the ReviewerList field below is wrong. And I'm not sure how to fix it.

@If(@IsNewDoc; "Joe Average"; ReviewerList; From; ReviewerList)
0
hobster
Asked:
hobster
1 Solution
 
wrichardCommented:
@If(@IsNewDoc; "Joe Average"; From )

There is a possibility that From may be a reserved word and cause problems.  You may want to rename your field.

Another possibility would be
@If(From = ""; "Joe Average"; From)

This says that if the From field contains no values then the ReviewerList field is assigned "Joe Average", but as soon as the from field contains values then they populate the ReviewerList field.

Hope this helps
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now