Hot answers tagged

2

At the point in your code where you want to get the choices, ctx.CurrentFieldSchema.Choices is an array of lookup choice objects, which each have two properties, LookupId and LookupValue. Here is a screenshot illustrating what I mean: In order to find out what is available to you, I highly recommend setting a breakpoint in your script, and just ...


1

Another workaround is to take the complete site backup. Then restore it in Production as a different site. Then use Content And Structure to move the libraries to proper place.


1

Instead of empty space use blank. Lookup will not display blank values IF(Date>TODAY(), Course, "")


1

SPFieldLookup_Edit( ctx ); produces the default HTML for an SP Lookup field, you could take that HTML and work it. If you want the individual options you have to dig into the Fieldschema (in your formCtx) SPFieldLookup_Edit is from clientforms.js: function SPFieldLookup_Edit(b) { if (b == null ) return ""; var a = SPClientTemplates....



Only top voted, non community-wiki answers of a minimum length are eligible