Skip to content

Dynamic allocation of textinput #19897

@NijaahnandhRV

Description

@NijaahnandhRV

This is my response array now I have to create a textinput or picker from the input_types value can anyone help me with this. I actually tried to do it with dynamic_data.push() but in onchangetext if we change a single field text it's affecting all the text fields.

 "form_fields": [
        {
          "id": 12,
          "created_at": "2017-12-18 11:28:29",
          "updated_at": "2017-12-18 11:28:29",
          "name": "children_name_service_7",
          "label": "Name of the Children?",
          "info": null,
          "label_for_search_form": "Name of the Children?",
          "length": null,
          "options": null,
          "class": "Service",
          "input_type_id": 1,
          "foreign_id": 7,
          "form_field_group_id": 5,
          "is_required": 1,
          "is_active": 1,
          "display_order": 1,
          "depends_on": null,
          "depends_value": null,
          "is_enable_this_field_in_search_form": 0,
          "input_types": {
            "id": 1,
            "created_at": "2017-11-23 12:07:45",
            "updated_at": "2017-11-23 12:07:45",
            "name": "Single Line of Text",
            "value": "textInput"
          }
        },
        {
          "id": 13,
          "created_at": "2017-12-18 11:28:29",
          "updated_at": "2017-12-18 11:28:29",
          "name": "age_of_the_child_service_7",
          "label": "Age of the Child",
          "info": null,
          "label_for_search_form": "Age",
          "length": null,
          "options": null,
          "class": "Service",
          "input_type_id": 1,
          "foreign_id": 7,
          "form_field_group_id": 5,
          "is_required": 1,
          "is_active": 1,
          "display_order": 2,
          "depends_on": null,
          "depends_value": null,
          "is_enable_this_field_in_search_form": 0,
          "input_types": {
            "id": 1,
            "created_at": "2017-11-23 12:07:45",
            "updated_at": "2017-11-23 12:07:45",
            "name": "Single Line of Text",
            "value": "textInput"
          }
        },
        {
          "id": 14,
          "created_at": "2017-12-18 11:28:29",
          "updated_at": "2017-12-18 11:28:29",
          "name": "gender_of_the_child_service_7",
          "label": "Gender of the child",
          "info": null,
          "label_for_search_form": "Gender",
          "length": null,
          "options": "Male,Female",
          "class": "Service",
          "input_type_id": 3,
          "foreign_id": 7,
          "form_field_group_id": 5,
          "is_required": 1,
          "is_active": 1,
          "display_order": 3,
          "depends_on": null,
          "depends_value": null,
          "is_enable_this_field_in_search_form": 0,
          "input_types": {
            "id": 3,
            "created_at": "2017-11-23 12:07:45",
            "updated_at": "2017-11-23 12:07:45",
            "name": "Select Box",
            "value": "select"
          }
        }
      ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions