Best answer

How to convert unreadable Magicform keys to readable labels like Typeform?

  • 28 November 2023
  • 4 replies
  • 64 views

Userlevel 1
Badge

We are building an integration for our platform “Magicform: which is a form builder software.

For example when configuring the trigger. A sample form-response is obtained by zapier for allowing the user to test their integration. When the sample response is received it contains fields like `field_adf67asf9` so that it remains reusable for further responses of the same form.

But when I was taking a look at how “Typeform” does it. It makes those unreadable keys to readable form by replacing those keys `field_adf67asf9` with the actual question. How can i do the same. 

For more context refer the following image
 


On further inspecting the API calls this is what I was able to see. That is the fields are being converted to a more readable form by replacing the “key” with the “actual question”. How to do it
```json

{

            "key": "field_wAkjqnVCleUw",

            "type": "decimal",

            "label": "Net Promote Score :- How likely are you to recommend us to a friend or colleague?",

            "custom_field": true,

            "zap_meta_sample": 10,

            "score": -0.2,

            "subscore": 0.0

        },

{

            "key": "field_CPJamjoh9dxn",

            "type": "string",

            "label": "Hey there. We're working on building a new analytics tool. We'd love to get your input to help us make it great.",

            "custom_field": true,

            "zap_meta_sample": "+918123456789",

            "score": -0.2,

            "subscore": 0.0

        },

```

icon

Best answer by Magicform Team 2 December 2023, 11:13

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

Hi @Magicform Team 

This should be posted in the Dev Zone: https://community.zapier.com/for-developers-61

Userlevel 1
Badge

Okay, Isn’t this the “how do i” zone?

Userlevel 7
Badge +14

@Magicform Team 

This should be posted in the Dev Zone: https://community.zapier.com/for-developers-61

 

Userlevel 1
Badge

Hello There, Good day to you!
I expected the Zapier team to know the answer, anyway, there is no point in dwelling on the past.

Anyone who is facing similar problem this is for you.

You can achieve this with the help of Zapier-CLI.
First of all if you have Platform UI application migrate it to Platform CLI & you need to develop it locally or you can create a zapier app from scratch using zapier-cli. The Zapier-CLI enables us to have more control over our custom integration.

Refer this https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#converting-an-existing-app

Jumping right to the main point you need to modify the outputFields
https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#output-fields