Hi All,
I am following the article http://letsaem.blogspot.in/2015/12/add-limit-to-number-of-elements-in.html to make this work.
However, in addition 'limit' property value has to be configurable[i.e, it has to pick value from an authorable textfield in component dialog].
Any thoughts/snippet on this will be helpful.
Hi
Please have a look at this community article:-
Link:-http://letsaem.blogspot.in/2015/12/add-limit-to-number-of-elements-in.html
//
Reference Link 2:- http://myadobecq.blogspot.in/2013/12/how-to-limit-number-of-fileds-in.html
Link 3:- http://stackoverflow.com/questions/10018858/how-to-limit-the-number-of-elements-in-multifield-in-cq5
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Hi Kautuk,
Yes, I have used the same article and it is working. However, I want to make the limit field configurable[i.e, I should be able to populate limit field value from another field[say a textfield/dropdown] in the component dialog]
Views
Replies
Total Likes
Hi All,
Suppose I enter 3 in a textfield [property xyz], adding a listener there to get the value. Able to get the value. But not sure how to populate that to limit field in fieldconfig[in the above mentioned article]
Trying the below:
function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./xyz').getValue();console.log(sel); var field = dlg.getField('limit');field.setValue(sel);}
Any thoughts/snippet will be helpful.
Views
Replies
Total Likes
Views
Likes
Replies