How to add flag icon in field control ?

krishnachowdary
Tera Contributor

Hi Team,

Could you please provide me the solution for below requirement.

   How to add flag  icon in field control .

for example :

User is india --display india flag

user is USA -- display USA flag.

Through ui macros 

 .Could you please provide me the solution for this requirement

 

Thanks in ADV.

 

Regards,

Vamsi M.

1 ACCEPTED SOLUTION

You have multiple reference attributes there.

1) ref_contributions

2) tree_picker

Reference attributes are separated by commas.  If you have multiple items for one attribute (like 'user_show_country' and 'user_show_incidents'), those should be separated by semicolons.  In order to maintain current functionality and add another macro your 'Attributes' field value should look like this..

ref_contributions=user_show_country;user_show_incidents,tree_picker=true

View solution in original post

18 REPLIES 18

The code shouldn't be an issue.  All you need to do there is add the correct image names.  Please send me a few screenshots so that I can verify...

1)  2 Screenshots of the form for your 'USA321.png' and 'INDIA32.png' images in the 'Images' module (including the section where it shows you the correct link to use).
2)  A screenshot of the top part of the form of your UI macro.

3)  A screenshot of the 'caller_id' dictionary 'Attributes' field showing where you've added the UI macro attribute.

 

Thanks!

Hi Mark,

Thanks for your Reply.

Please find the below screen shots.

 

Regards,

Vamsi M

Okay, and how about the screenshot showing your 'caller_id' dictionary 'Attributes' field?

Also, make sure you've explicitly set the 'Country code' field on each User record that you want this to work for.  The default 'System' value won't work because it's actually a null value in the database.

Hi Mark,

Thanks for your response.

I have updated the country code also in user record and please see the below screen shots.

 

 

Reagrdsm

Krishna M.