Skip to Content
author's profile photo Former Member
Former Member

Dynamic labels

Hi

I am working on VC 7.0 EHP1. SP 8.I have a requirement as follows:

There are two drop downs on my form view : Country and State.

On choosing the Country the drop down State gets filled with the associated states for that country.

My requirement is to change the label "State" for countries like Canada where there no states but "provinces".

So if a user chooses "Canada" from the Country drop down the label should read "Province" for the second drop down and not state.

Is that possible with current version of VC i am on?

Please help.

Thanks in advance

Regards

Shweta

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 04:03 PM

    Hi,

    I would first find out condition, which explains whether country has states or not.

    Based on that condition, I would set a flag in store (true/false).

    then select the item on form in layout view. Go to configure. In the General section, there will be Label entry available.

    there I would put formula.

    eg.,

    =if(store@state_flag==true then "STATE" else "PROVINCES".

    Hope this helps you,

    Regards,

    Vinay.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 06:37 PM

    I overlooked and had assigned the value as defualt ... the suggested solution did not work

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.