Add a field description

Hi,

I have attempted to use the code you have provided to display a field description but it hasn't worked.

//sets the field's description
fd.field('Text1').description = 'New description'

Here is the link to where I got the code from:
https://plumsail.com/docs/forms-web/designer/fields/common-properties.html#description

I am using the Plumsail Application.

Thanks in advance!

Hello @Qman,

You need to place the code within the fd.rendered event:

fd.rendered(function(){
    fd.field('Text1').description = 'New description'
});

If it still doesn't work, double-check the internal field name and check the browser console (F12) for errors.

I found another way to add a field description via a SharePoint List.

Head to the SP List setting and add a description in the 'Description' Box

image

1 Like

Hi Margarita,

Is it possible to show/hide field descriptions based on a drop-down?

Update:

All fixed.

Remember to change field names!
Here is the code that will do this:

function termtime(){
    if (fd.field('PSTermTime').value == "Term Time Only"){
        fd.field('PSNewHours').description = "My Message";
        $(fd.field('PSNewHours').$el).ready(function(){
        $(fd.field('PSNewHours').$el).find('.text-muted').html('My message.')
        })
    }
    else{
    //hides the message
    fd.field('PSNewHours').description = "";
    }

}

//calling function on change
fd.field('PSTermTime').$on('change',termtime);
//call on load
termtime();
1 Like