My first App having trouble with Type EMAIL

Hi Everyone, this is my first post, but before I get to my question, I want to say as a former IT Director what a great tool you have, but also as an Angular web developer, I wish I had more control over the user interface!

After learning from the sample apps, I decided to strike out on my own and create something. I decided on something familiar like an Address Book found in many email programs. I wanted to capture more than one email address per contact. Everything is progressing well, but I got hung up on some odd behavior of Email Address of type EMAIL.

In the Inline view, I see the clickable email icon. Thatโ€™s great functionality, but Iโ€™d also like to see the Email Address text. My solution was to create a Virtual Column called Email Address Text of type TEXT that simply takes on the value of Email Address. I was able to get this to work to my satisfaction, but then I discovered problems elsewhere, particularly when I edit the Contact. Now the Inline view shows the Email Address as text, not as an icon. The result is that I see two columns for Email Address, both are text.

Iโ€™d like the Inline view to behave like this:

  1. Show the Email Address icon and text when viewing the Contact.
  2. Show only the Email Address text when editing the Contact.

Iโ€™m sure that this is a lot easier than Iโ€™m making it out to be. All help welcome!

Thank you,
Brian

Solved Solved
0 3 782
1 ACCEPTED SOLUTION

Marc, thank you very much for your reply.

CONTEXT is the function I needed, thank you for leading me to it. It worked at hiding the value, but unfortunately it did not remove the column in the inline table in the Form View. Perhaps there is a way of controlling that.

So I opted for the simple solution: Only show the โ€œEmail Address Textโ€ field in the Inline View. It works perfectly, but the disadvantage is that I need to click one more time to compose an email. Not a big deal.

Thanks again,
Brian

View solution in original post

3 REPLIES 3

Inline Actions buttons always overwrite the actual value and the column header inside of Table views (an โ€œinlineโ€ view is also a Table view). I donโ€™t personally care for that, which is why I have a feature request to change that:

What you did with the VC of Text type was a good option for getting the display how you want.

I take it that you have a main Contact record, then child records beneath it for each email address? I think what youโ€™re experiencing is the inability to execute Actions inside of Form views (โ€œthinkโ€ being an operative word, itโ€™d help if you provided some screenshots). And so when โ€œeditingโ€ the Contact (i.e. opening its Form view), those inline email Actions get removed from the inline Table, and thus the actual value is displayed again (alongside your new VC).

There are probably multiple ways to solve this. I think an acceptable solution would be to give a CONTEXT() expression in the show_if of your new VC, to hide the new VC values when youโ€™re inside of the Contact Form. Iโ€™ll assume the view is called โ€œContact_Formโ€, so you can use this expression:

CONTEXT("View") <> "Contact_Form"

Now, I did say an โ€œacceptableโ€ solution, not โ€œperfectโ€. This wonโ€™t actually hide the entire column, itโ€™ll just hide all of the values. But instead of continuing with further solutions Iโ€™ll let you try that first and reply again and make sure weโ€™re on the right track.

Marc, thank you very much for your reply.

CONTEXT is the function I needed, thank you for leading me to it. It worked at hiding the value, but unfortunately it did not remove the column in the inline table in the Form View. Perhaps there is a way of controlling that.

So I opted for the simple solution: Only show the โ€œEmail Address Textโ€ field in the Inline View. It works perfectly, but the disadvantage is that I need to click one more time to compose an email. Not a big deal.

Thanks again,
Brian

A solution is documented here: https://support.google.com/appsheet/answer/10108131?hl=en

Summary:

  1. Go to "Actions"
  2. Click "Show system actions"
  3. Open "Compose Email ({column_name})"
  4. Go to section "Appearance"
  5. Change value of "Prominence" to "Do not display"

Now the email address value will be displayed, and not the email icon.

Top Labels in this Space