mardi 6 octobre 2020

How to setup radio-group on custom type formbuild? [closed]

I want a radio-group on my custom type but how do i do that can someone help? I don't want to change the type to radio-group. it's a plugin from formbuildonline.

 'matrix': {
       randomize_values: {
         label: 'Randomize',
         type: 'checkbox'
       },
       always_correct: {
         label: 'Always correct',
         type: 'checkbox'
       },
       feedback: {
         label: 'Feedback',
         type: 'text',
         placeholder: 'Insert feedback for this question here'
       },
       options: {
         label: 'test',
         value: [{
           label: 'test', value: "World"
         }]
       }
     }
   },
  templates: {
    matrix: function (fieldData) {
      return `test`
    },
  },
  fields: [
    {
      label: 'Matrix',
      attrs: {
        type: 'matrix',
      },
      icon: ':'
    },
  ],

This is wat i want

This is what i have



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire