Editform - Date/Time-Picker readonly = False

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
slashmaster
Posts: 29
Joined: Fri May 25, 2018

22 Oct 2018

Hi Guys,

how can i change the readonly property via Javascript from an date/time-Field in the Edit-Form from readonly=true (Standard for all user) to "readonly=false" for Special users? To ident specific user is not a Problem. But if the field is Standard (property set in the Forms Designer Client) readonly=true i cant change it.

i tried:
fd.field("DateTimeTest").readonly(false);

without success (no error, nothing happened)

thanks in advanced

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

22 Oct 2018

Hi!

Unfortunately, if the readonly property is set to true, then it will be no input text area for this field on the form and a command 'readonly(false);' will be useless.

As far as I can see, there are two options in this case:

1) Set the readonly property to 'false' in the Field Settings and then populate it with 'true' or 'false' in the script depending on the user came in.
2) Provide different forms for different users: https://spform.com/groups-and-form-sets ... int-online

slashmaster
Posts: 29
Joined: Fri May 25, 2018

23 Oct 2018

Hi Alex,

okay, thank u

greetz

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests