Problem with create new button within Inline Views

I created an app using a sample app (Field Service Manager). My problem is that I have system created inline views and on this particular app, at the bottom of the inline table view, it has the typical โ€œView(#)โ€ but to the right of that it says โ€œNew Complaintโ€. None of my other apps have this and Iโ€™d like to change the word โ€œcomplaintโ€. I have tried a bunch of things, watched videos, searched here, and searched customer support, all to no avail. Could anyone help me figure out how I can fix this button?

Thanks

1 18 1,130
  • UX
18 REPLIES 18

Hi @Nathan_Aycock Have a look in UX> Localise > New and change it there.

In addition if you need this to change based on the View shown, ie. you have multiple inline view types, you can use a combination of the Switch() and context(View) formulas to get a fully customized result. For example, if you have the inline view for โ€œView1โ€ and a different inline view for โ€œView2โ€ you would use the formula

=switch(context(View), โ€œView1โ€, โ€œNew Entry for #1โ€, โ€œView2โ€, โ€œNew Entry for #2โ€, โ€œNewโ€)

This tells the app to show those unique values for each of those 2 views only and then default back to โ€œNewโ€ for everywhere else.

hmmm

Is there a limit on the number of inline views that you can apply this to?

No the switch command can just be expanded as needed. It just follows the pattern=switch(โ€œRef Valueโ€, Entry1, Result1, Entry2, Result2, Entry3, Result3, โ€ฆ, โ€œValue if Elseโ€)

That figures, it was right under my nose this whole time !!!
Thank you so much @Lynn!!
My hair was getting gray.

@Rich
I have a detail view that shows four inline views. I tried your solution and all four of them revert to โ€œNewโ€. Am I doing something wrong? Here is what I am using:

switch(context(View), โ€œNotes_Inlineโ€, โ€œAdd New Noteโ€, โ€œAttachments_Inlineโ€, โ€œAdd New Attachmentโ€, โ€œChain of Custody_Inlineโ€, โ€œAdd New Chain of Custodyโ€, โ€œPersons_Inlineโ€, โ€œAdd New Personโ€, โ€œNewโ€)

You need to specify the Detail view that the inline view is in and not the inline view itself. Think about it from the perspective of โ€œwhat View will the user be in when they need to see this value?โ€.

When users see inline views they are in the Detail view of the parent not the inline view itself.

Ok. So I need to specify the view that the inline views are in. And I do that here right?

switch(context(IN HERE),

Making the whole thing look like this:

switch(context(ServiceLog_Detail), โ€œNotes_Detailโ€, โ€œAdd New Noteโ€, โ€œAttachments_Detailโ€, โ€œAdd New Attachmentโ€, โ€œChain of Custody_Detailโ€, โ€œAdd New Chain of Custodyโ€, โ€œPersons_Detailโ€, โ€œAdd New Personโ€, โ€œNewโ€)

No, context(ServiceLog_Detail) should instead be literally context(View) (with the word, โ€œViewโ€). This expression asks the question, โ€œwhat is the name of the current view?โ€

Ok. I misunderstood. So in my case it should look like this?

switch(context(View), โ€œNotes_Detailโ€, โ€œAdd New Noteโ€, โ€œAttachments_Detailโ€, โ€œAdd New Attachmentโ€, โ€œChain of Custody_Detailโ€, โ€œAdd New Chain of Custodyโ€, โ€œPersons_Detailโ€, โ€œAdd New Personโ€, โ€œNewโ€)

Yep.

OK. Thanks, Iโ€™ll give that a read. Sadly the above did not work. Perhaps there is something else affecting it.

In what way doesnโ€™t it work? You never get any custom value?

Arenโ€™t these my custom values?

They are, yes.

Steve
Platinum 4
Platinum 4

As I look back over this thread, Iโ€™m inclined to suggest you not attempt to change the message here. Instead, merely remove the "New complaintโ€™ text provided by the sample app and leave the custom text expression blank. Doing so will revert to the original text, โ€œNewโ€.

For this particular message, attempting to adjust the text per view is likely to introduce complexity that you might not be able to overcome. This is the primary reason I make this suggestion.

From a user-experience perspective, your new wording increases the size of the button without adding any new information: youโ€™re adding the name of the column, but the column name is already displayed at the top of the inline table.

Very well. Your time and assistance is appreciated.

Thank you very much

Top Labels in this Space