by way of shameless self-promotion: Here’s an example of how to implement a reference list column that sanitizes itself. This means it won’t turn red when users type (or paste) stupid things into it that aren’t referencable records at all. Instead, it will create new references containing said stupid things, then link to those.
It’s a nice way of making Grist even more usable to Excel-socialised people. Take a look:
The magic behind this comes from a little function I wrote a while ago, and which the trigger formula for the reference column reuses according to the “RUC” concept I’m trying to promote here. So as I said, shameless advertising, but please do take a look.
Hi Tom,
Great useful code! Thank you
I just edited the example’s input parsing regexp in my copy because my first test failed (frequent accentuated chars here) . Works better for me with r"([-.\w]+)\s*(,?)\s*([-. \w]*)\(?(.*)\)?"
Now using RUC tables in my documents. It’s just a pity they can’t be shared on the account level.
Thank you!