Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Getting js error in form-field liferay 7.1
I am getting a js error that renderer is not a constructor on adding custom form field in liferay 7.1....any idea on how to resolve this. Please help ... any help would be appreciated...thanks in advance.
Kindly share ur js file. you can also add some console.log to debug the issue
I found that the code causing error is below:-
getTemplate: function() {
var
instance = this;
var renderer = AObject.getValue(window,
['DDMCheckboxMultiple1', 'render']);
//alert(Liferay.namespace('DDM.Field'));
var container = document.createDocumentFragment();
new renderer(instance.getTemplateContext(), container);
return
container.firstChild.outerHTML;
},
Please help..thanks in advance..
Powered by Liferay™