Open stovesy opened 5 years ago
Did you find any solution?
I’ve not used this for nested forms. My scenario was two separate forms at root level.
I will investigate
On Fri, 22 Nov 2019 at 13:32, senemgenberova notifications@github.com wrote:
Did you find any solution?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wbraganca/yii2-dynamicform/issues/296?email_source=notifications&email_token=ABUJALXBMSQMWJKRT22KK2TQU7NQDA5CNFSM4IS3VCV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE5UPJA#issuecomment-557533092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUJALTENRLX6HNTNMONKO3QU7NQDANCNFSM4IS3VCVQ .
-- Pete Stoves e: stovesy@gmail.com @ http://www.charnvel.co.uk/stovesyp
i got this solution from https://demos.krajee.com/number#comments
Try to put following code in yii-dynamic-form.js (remember to delete web/assets files to make it effect)
// "kartik-v/yii2-numbercontrol" var $hasNumberControl = $(widgetOptionsRoot.widgetItem).find('[data-krajee-numbercontrol]'); if ($hasNumberControl.length > 0) { $hasNumberControl.each(function() { var configNumberControl = eval($(this).attr('data-krajee-numbercontrol')); configNumberControl.displayId = $(this).parent().prev().attr('id'); if ($(this).data('numberControl')) { $(this).numberControl('destroy'); } $(this).numberControl(configNumberControl); }); }
Has anyone made any modifications to DynamicForm to get the Kartik Number control working?
Validation fails and the mask function does not copy to a new form entry.
Thanks