I am trying to set end time field in SharePoint calendar for that I need client id...can any body help me with this?
Solved! Go to Solution.
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...
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
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?