Now that we’ve seen how to create a canvas formula for a pop-up, let’s do the same within a modal view.
The easiest way to achieve this would be to add a new column, enter the object formula, and - boom - we’re good. However, that would display the keyword as a separate field, and that’s just disruptive to user’s reading flow.
see screenshot for resulting problem: So, let’s fine a way to make a keyword hoverable WITHIN the text.
see screenshot for our desired end result: Here’s how to set up the table accordingly:
Create a table “Sample Texts” that contains all information that shall be displayed in row modal To this table “Sample Texts”, add a column titled “Tool Tip”, which shall be a lookup to the table “Pop-Up Texts”. Select the applicable keyword upon which you want the Pop-Up to appear. In Table “Sample Texts”, insert a new column with the following formula. This newly generated object will show the tool-tip pop-up text upon hover. Break up the text at the keyword (using split(),
and then stitch the three components back together using ListCombine(TextBeforeKeyword,KeywordObject,TextAfterKeyword).
I’ve broken down the steps into three different columns for demo purposes, although they could of course be wrapped into one. This works, but poses a problem for readability - due to the fact that ListCombines creates (shocker!) a List, the three components are now separated by a comma. Not to pretty on the eyes, is it: The solution is to use Join() and to set a simple space as the dividing character.
(Shout-Out to Community Champion Max Xyzor for this tip!) This results in the following: Now, all that’s left to do is to edit the Modal Layout to solely show the newly created column (in the sample, this column is creatively called “Join”.
Yay, that’s great, isn’t it. But wait... there’s more! What if you’d like the pop-up to show data from multiple rows, not just one row?
Yep - there’s an app a way for that.
See the resulting table structure below: