Customized functions

Follwing my support email, would it be possible to show how can we customize the functions when handling the data (from collection or rest API) please?

I am struggling a bit with String functions as “replace” doesn’t work as expected and I can’t find a way to concat 2 strings.

Thank you in advance.

Hello @bktag

This would require building a plugin :slight_smile:
You would be actually first one who will do it, here’s how:

  1. Install Creator application

  2. From sidebar, open creator, then create new plugin, name it ‘Custom Replace’ or something similar.

  3. Create your first javascript file (name it replace.js or something similar)

  4. Paste this code

mdFunctions.OnReady(() =>
        id: 'my-replace',
        parameters: {
            pattern: {type: 'INPUT'},
            keyword: {type: 'INPUT'},
        description: 'Replace pattern with keyword.',
        group: 'String',
        function: function(data, value, pattern, keyword)
            if(typeof value !== 'string')
                return value;
            // Perform JS here on the 'value' (value - value that function get's, eg: text)
            return 'this is new replaced value';
  1. Save and then refresh the website. You will then see this function to select as well named, ‘my-replace’

Let me know if you had any success.
In this way you can build plugins and publish to marketplace :slight_smile:

That looks cool! Will have a try and let you know :slight_smile:

Just to let you know I created a function (addToString). It’s rather simple and answer to my specific need :smiley: (adding URL to an image path).
Might add later a customizable concat function :slight_smile:


So everything works fine?

We will be releasing documentation in coming months, so you will have ability to extend/modify entire builder. It’s very powerful :slight_smile:

1 Like

Yes it worked! Thanks!
And indeed, Divhunt looks quite powerful! You guys will have a lot of work to do to document all the possibilities :sweat_smile: