DateTime Fields

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

04 Dec 2014

I was just wondering about that. I'm new to SharePoint and to SP Forms. If I store the value in a text column the draw back would be I'd have to convert the text back to a datetime variable to use it programatically in the future, right?

Something like talked about here:

http://forums.asp.net/t/1861281.aspx?Ho ... javascript

Not too bad, but probably has other drawbacks too...

SpongeBen SquareJaw
Posts: 16
Joined: Mon Nov 24, 2014

05 Dec 2014

The date only gets set if i select a certain value in a dropdown box on same form. If I don't select the value the date should remain blank. With the sharepoint calendar field if I dont add a date it doesn't insert one. I need that functionality from the textbox control. There has to be an easy way of getting it to do the same without erroring.

Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

05 Dec 2014

Hopefully you or Dmitry can set me straight on this...

I'm wondering about using the text box solution Dmitry suggested above and start the textbox hidden field in a disabled state, then only enable it if action is taken and it will be populated?

Can a hidden field be disabled? Are disabled hidden fields passed and/or checked for format? It would be great to be able to work around this SharePoint control limitation. I plan to try this out a bit later.

AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

27 Apr 2016

I get an error on save. I guess it might be because of regional settings. My site uses Latvian settings. How should I adjust the code?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

27 Apr 2016

Do you get the error if you change your locale to, say, English (US)?

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests