how to use place holder in textarea input form attributes.

how to use place holder in textarea input form attributes.

T-onetechT-onetech Posts: 2Questions: 1Answers: 0

I find it difficult to use the placeholder attribute, I want to achieve something like this:
{
"label": "Weekly Evangelism:",
"name": "weekly_evangelism",
"type": "textarea",
"placeholder": "No of slips Followed"
},

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 2,990Questions: 87Answers: 421
    edited January 2020 Answer ✓
    {
        label:  "Weekly Evangelism:",
        name:  "weekly_evangelism",
        type:    "textarea",
        attr: {
           placeholder: "No of slips Followed"
         }
    },
    

    with "select" fields it is slightly different. You don't use "attr" there but you can specify the placeholder just like any other field attribute:
    https://editor.datatables.net/reference/field/select

    like this for example:

    }, {
        label: "yourLabel",
        name:  "yourField",
        type: "select",
        multiple: true,
        placeholderDisabled: false,
        placeholder: "your placeholder"
    }, {
    
  • T-onetechT-onetech Posts: 2Questions: 1Answers: 0

    Thanks @rf1234 , you just saved the day.

This discussion has been closed.