Closed Fharhanamrin closed 8 months ago
value from api [{"type":"text","required":false,"label":"First Name","access":false,"lebel_id":"Nama Depan","label_en":"Nama Belakang","className":"col-md-4 form-control"}]
Cannot replicate. What version are you using?
window.formBuilder = await $('#fb-editor').formBuilder({
typeUserAttrs: {
'*': {
lebel_id: {
label: 'Label Indonesia',
value: 'Label Indonesia',
},
label_en: {
label: 'Label Inggris',
value: 'Label Inggris',
},
},
},
formData: [],
i18n: {
location: "https://raw.githubusercontent.com/kevinchappell/formBuilder-languages/master/",
},
}).promise;
window.formBuilder.actions.setData([{"type":"text","required":false,"label":"First Name","access":false,"lebel_id":"Nama Depan","label_en":"Nama Belakang","className":"col-md-4 form-control"}]);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js"></script>
<script src="https://formbuilder.online/assets/js/form-builder.min.js"></script>
Have you verified that your code is loading anything? Try setting values for all other fields and checking they load.
does not change to replace the latest data from the data in the settings
the value is not included in the input value?
OK, I've track down the issue to a regression in commit https://github.com/kevinchappell/formBuilder/commit/bfa92e8f7adfa0eb97966028500e8299b572b2d3
I'll prepare a PR to fix it shortly
Please try the patch in https://github.com/kevinchappell/formBuilder/pull/1531 or wait until it has been released for a bug fix.
problem solved, thank you sir When will it be released into production?
:tada: This issue has been resolved in version 3.19.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Description:
Environment Details:
formBuilder Version:
Browser:
OS:
Expected Behavior
Actual Behavior
Steps to Reproduce
Insert Form => set Data form => does not match what was saved
Screenshot - (optional)
insert to db
appears after saving the data value label indonesia and label inggris wrong