You’ll want to use a function like this:
I would also recommend supporting the feature request, if you want this to be a native feature.