Jump to content

This topic is 5505 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

i have 2 fields one is "religion" (text) and the other one is "Parish or horoscope" (text).I want a calculation so that if i type "christian" in the field "religion" then the field "Parish or horoscope" should be automatically typed with "Parish" and if i type "hindu" in the field "religion" then the field "Parish or horoscope" should be automatically typed with "horoscope"..

can any one help me please..

  • Newbies
Posted

Redefine your "Parish or horoscope" as a CALCULATION field with the RESULT being TEXT and the following as the calculation (you can copy and paste it):)

Case(religion = "christian"; "parish"; "horoscope")

This calculates for the 2 results you wish for. The above function operates, in plain English, as "if this person is a Christian then this field will be PARISH. Otherwise it will be HOROSCOPE".

You can add to this if you wish. Let's say you wanted to add Buddhist with the result "dharma". Your function would be as follows:

Case(religion = "christian"; "parish";

religion = "hindu"; "horoscope";

"dharma")

Hope this helps!

This topic is 5505 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.