Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi to all, I am pretty new in creating databases, so I ask for your patience. English is not my native language, so I may do few mistakes. I ask for your patience

I am creating a database. What I want is to create a dropdown list with three choises. When a user selects, lets say "Option A" I want a specific image (such as image-a.jpg) to appear in a certain field. When he chooses "option B" another image (image-b.jpg) should be "attached" in this particular field and so on.

What are the steps that I have to follow? Please try to be as specific as possible!

Thank you very much for your help!

George

Posted

Hi

1) create a new repeating global container field with 3 repetitions ( name it: images )

2) while in Browse mode insert, into each repetition, your images.

3) create a calculation, result type container, with this calc:

Case(

YourDropDownField = "Option A" ; images[1] ;

YourDropDownField = "Option B" ; images[2] ;

YourDropDownField = "Option C" ; images[3]

)

Note that:

a ) the repeating global container could stay into another table, even not related.

b ) YourDropDownField is the name of your current field, formatted as a drop down list.

Posted

I did all that you mentioned (thank you very very much!!!) but when I create a new record, fields images[1], images[2] and images[3] remain blanc. The same for the field "result". What did I do wrong?

(Where "result" is the calculation field)

This topic is 4679 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.