I need to change the Button “New” to “Change” in an inline view which is in a detail view. I was trying with CONTEXT(“View”). But my problem is I have got multiple inline views within that details view. I want to change only one “New” button text. I don’t want other “New” buttons to be changed.
Hi @Kanishka, Welcome to Community…
Which should be something like below for your case:
IF(CONTEXT("View") = "YourSelected_Detail" , "Change" , "New")
IF(CONTEXT(“View”) = “My Tickets_Detail” , “Change” , “New”) expression for “New” word in Localize section.
But my problem is I have multiple inline views in the “My Tickets_Detail” view. So all the “New” words in inline views will be changed to “Change”.
I want to change “New” only in one inline view. That’s the issue that I am facing.
The localize page won’t have access to row-specific data.
If you were really hell-bent on making this happen, the Localize panel can only differentiate between the views, you could key off that - so you could create a system to use a specific view for that one record and the regular one for the rest.
To accomplish this:
make a copy of the view and give it a different name
make a navigation action with a formula something like this:
if([RecordID] = “The_specific_records_ID”, “Name of new view copy”, “Name of original view”)
You need some way of selecting out the specific record
In the “Event Action” for the inline view that leads to your detail view, insert the navigation action.
(This way when people tap on a record to view it in the detail view, the app first takes note of what record you’re trying to view - if it’s the specific one you’re directed to the special view, otherwise the default behavior is to take you to the original view.)
This is a bit of a hack, but it would work.
It sound like complicated and need something like @MultiTech_Visions suggested.