Add property to single text field
Hi,
It is possible to add the "list" property to a single line text field with Javascript?
At the top of the form I added a HTML control containing a datalist. I would like to bind the ID of the datalist to the field. It should allow the user to choose predefined values from the list but not force it.
It is possible to add the "list" property to a single line text field with Javascript?
At the top of the form I added a HTML control containing a datalist. I would like to bind the ID of the datalist to the field. It should allow the user to choose predefined values from the list but not force it.
Hi,
I finally found the answer myself.
I added a HTML container containing a <datalist id="mydatalist">....</datalist> element on top of the form.
And then connected the datalist to the SharePoint field
I finally found the answer myself.
I added a HTML container containing a <datalist id="mydatalist">....</datalist> element on top of the form.
And then connected the datalist to the SharePoint field
Code: Select all
fd.field('Personal_x0020_titel').control()._el().find('input').attr('list', 'mydatalist')
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests