Hi,
I’m not familiar with this custom field, but to support a custom field you must define a custom function in “Custom JS” in your DFFS form on this format:
spjs.utility["getFieldValue_SPFieldBrandysoft.SharePoint.LookupPro.CascadedLookup"] = function(a){
// Get the field value and return it - see example below
}
For reference, this is the format of the default single choice lookup column function:
spjs.utility["getFieldValue_SPFieldLookup"] = function(a){
var f = spjs.$(spjs.utility.data.fields[a.fin]), v = "", type = spjs.utility.verifyLookupFieldType(a.fin);
if(type !== "" && typeof spjs.utility["setFieldValue_SPFieldLookup"+type] === "function"){
return spjs.utility["getFieldValue_SPFieldLookup"+type](a);
}
if(f.find('select option:selected').val() !== "0"){
v = f.find('select option:selected').text();
}else{
v = "";
}
return v;
}
If you want to use it manually, this is the format:
spjs.utility.getFieldValue({"fin":"NameOfLookupColumn"});
Hope this helps,
Alexander
-
This reply was modified 8 years, 4 months ago by Alexander Bautz. Reason: Fixed "Use it like this" example