I am trying to set end time field in SharePoint calendar for that I need client id...can any body help me with this?
You can set the value of the hours and minutes like this :
var dateTimeControl = NWF$('#' + myDateTimeClientID);
With "myDateTimeClientID" the value you populated in the settings of the date time control :
And 12 and 00 the hours and minutes you want to set.
Hope this helps
Can you explain a bit more your need ?
Do you need the client id of a date time control in a form ?
Hi Caroline...yes we need client id but it seems that its not working for any of the control on nintex form(we have explicitly enabled this option on all control)....We are not sure why it is not working.....actually we want to set value of time part of date/time control..so that we can set those value on form load...
Thanks for your help...but my issue is that Client ID is not getting generated...when i load the form we are getting error
'VarClientId' is undefined" that mean some how the form setting for storing client Id is not working for me....
My Current settings:
Do you include JQuery ?
Nintex already include JQuery and it can generate errors if you also include another version of JQuery in the form or in the master page.
I've also noticed that there's a capital "V" in the name of your variable in the error (VarClientId). Have you correctly copied/pasted the name of the variable you've set in the settings of the control (i) ?
Hi Caroline...thanks for your help...I don't know what was wrong but issue got resolved and I am able to get variable value....
is possible to get metadata field value from form field using same approach? can you please provide any example for extracting metadata field value as I have site workflow and I need to extract value from metadata field
I don't understand your need : do you want to get a managed metadata field value populated in a site workflow start form ?
I'm getting the same error Rahul got.
I've checked the names to be the same, but i'm still getting that error, is like it's not being generated. The same happens when i add a class to the control y tried to use the class selector.
I haven't included Jquery to the form.
Can you help me?
That's Strange. Did you add a rule to hide this control or did you change the "Visible" field in the settings of the control ?
I've created another discussion explaining my problem, with screens:
If you enter, you'll see how my control is configured and how i'm trying to get the control using the variable.
Thanks for replying!
Retrieving data ...