Rename Menu View from Dropdown

Hey,

So I want to change the menu view name based on a drop down from another view.
For example, user picks Countries by continent from a drop down in a form. Once saved the view named โ€œCountriesโ€ on the menu view changes to โ€œCountries by continentโ€.
Do I use a behavior for that? Confused as to what formula to use or if Iโ€™m linking to another page.

Thanks

Solved Solved
0 10 637
  • UX
1 ACCEPTED SOLUTION

Hey Ivy.

In the view thereโ€™s a section (Display) and inside it youโ€™ll find โ€œDisplay name.โ€

You can either use regular text (like you see in the image below) or if you hit the toggle you can use a formula:
2X_9_9b9fcc8b62779047b75b61ca93406352d272239a.png

Inside the formula space you can build your formula there, some kind of IF() statement.

Where is this dropdown? In Usersettings? If so, an example of what that formula would look like is this:

IF(
    ISNOTBLANK(usersettings(Countries_By_Continent)), 
  "Countries by continent", 
 "Countries"
)

If your dropdown is a selection of continents and you wish to include that specific continent name in the view title, your formula would look something like this:

IF(
     ISNOTBLANK(usersettings(Countries_By_Continent)), 
   concatenate("Countries by ", usersettings(Countries_By_Continent)),
 "Countries"
)

View solution in original post

10 REPLIES 10

Hey Ivy.

In the view thereโ€™s a section (Display) and inside it youโ€™ll find โ€œDisplay name.โ€

You can either use regular text (like you see in the image below) or if you hit the toggle you can use a formula:
2X_9_9b9fcc8b62779047b75b61ca93406352d272239a.png

Inside the formula space you can build your formula there, some kind of IF() statement.

Where is this dropdown? In Usersettings? If so, an example of what that formula would look like is this:

IF(
    ISNOTBLANK(usersettings(Countries_By_Continent)), 
  "Countries by continent", 
 "Countries"
)

If your dropdown is a selection of continents and you wish to include that specific continent name in the view title, your formula would look something like this:

IF(
     ISNOTBLANK(usersettings(Countries_By_Continent)), 
   concatenate("Countries by ", usersettings(Countries_By_Continent)),
 "Countries"
)

Thanks, how about if the column is not in user settings but just a random table?

Just replace the โ€œusersettingsโ€ table name in the example with the name of the โ€œrandomโ€ table. I assume itโ€™s not actually random

Not quite @Mike, @ivyberries youโ€™ll need to change the syntax:

IF(
     ISNOTBLANK(Table[Countries_By_Continent]), 
   concatenate("Countries by ", usersettings(Countries_By_Continent)),
 "Countries"
)

2X_f_f0a3fe449643588a3829b7ca5e54962acde8410c.png

If you need to find something based on the USEREMAIL(), replace the part inside the ISNOTBLANK() with a LOOKUP():

LOOKUP(USEREMAIL(), Users, User_Email, Column_You_Want)

@MultiTech_Visions - oops! I donโ€™t use usersettings much yetโ€ฆ

@Mike yeah, tried that. Failed but made me think.
@MultiTech_Visions That worked like a charm, thank you very much.

Sorry, I donโ€™t understand why I cant wrap my head around this. Now I cant pick any other choices from the dropdown to display as View Name except countries by continent.

I try comparing inside the if (), I get this error โ€œCannot compare List with Textโ€. Is there a way to compare, check if true(Selected by User) and pick that option from dropdown to display as View Name?

How are you storing this data? It would help to have a little understanding of how youโ€™ve put things together, then I can give you a formula example more directly related.

Are these controls in UserSetting or a table?

So I have my country sheet blank except for my heading, [Name].
In data, I put column [Name] as enum and placed my choices on that. So the view has my dropdown, about 6 choices. Depending on what the user picks I want the view name to change. The formula above is great only it gives me one choiceโ€ฆhope I make sense.

How many people will be using this app, and will each user get their own record in the โ€œCountryโ€ sheet?

Sounds like youโ€™ve got a โ€œcontrolโ€ sheet, this is a good setup, we just need to dial in for one or many people.

If youโ€™re the only person using the app, and there will only be one record in the Country table, then you could simply wrap the table part of your formula in a ANY() - this pulls 1 record out of a list.

ANY(Countries[Name])

But if youโ€™re going to have multiple people using the app, and youโ€™re not using private tables, it might be a better idea to move this control into UserSettings, this way itโ€™s always user specific.

Top Labels in this Space