79837657

Date: 2025-12-04 08:05:00
Score: 2.5
Natty:
Report link

When sending a Flow template, you can dynamically set the labels in the flow from the flow_action_data field. Set all labels in the flow dynamically. Create data on each screen in the Flow JSON and have the labels reflect the property values there.

example:

  "components": [
    {
      "type": "button",
      "sub_type": "flow",
      "index": "0",
      "parameters": [
        {
          "type": "action",
          "action": {
            "flow_action_data": { //You can set this in your system in the desired language and change the values.
              "hear_us_0_visibility": false,
              "answer_body": "Please answer the questions completely and accurately.",
              "full_name_text": "Full Name",
              "e_mail_text": "E-mail",
              "age_text": "Age",
              "how_did_you_text": "How did you hear about us?",
              "hear_us_props_text": "Select",
              "no_answer_section_text": "No answer provided",
              "other_section_text": "Other"
            }
          }
        }
      ]
    }
  ]

Flow JSON Example:

    "screens": [
    {
      "data": {

        "answer_body":{
          "__example__": "Please answer the questions completely and accurately.",
          "type": "string"
        },
        "full_name_text":{
          "__example__": "Full Name",
          "type": "string"
        }
      },
      "id": "QUESTION_ONE",
      "layout": {
        "children": [
          {
            "children": [
              {
                "text": "${data.answer_body}",
                "type": "TextBody"
              },
              {
                "input-type": "text",
                "label": "${data.full_name_text}",
                "name": "Full_Name_b8c3e3",
                "required": true,
                "type": "TextInput"
              },
              {
                "input-type": "text",
                "label": "${data.e_mail_text}",
                "name": "Email_a25755",
                "required": true,
                "type": "TextInput"
              },
              .....
Reasons:
  • RegEx Blacklisted phrase (2.5): Please answer the question
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: batumento