Page 1 of 1

Editform - Date/Time-Picker readonly = False

Posted: 22 Oct 2018
by slashmaster
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

Re: Editform - Date/Time-Picker readonly = False

Posted: 22 Oct 2018
by AlexZver
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

Re: Editform - Date/Time-Picker readonly = False

Posted: 23 Oct 2018
by slashmaster
Hi Alex,

okay, thank u

greetz