How to load an existing form structure

117 views
Skip to first unread message

vzmind

unread,
Jan 30, 2012, 10:10:29 AM1/30/12
to JQuery Form Builder Plugin
Hi,

I have used the form builder on my app and stored the resulting json
structure in DB. Now I would like to edit that form and modify, let's
say, a field name. How could I load the existing form structure ?

I have found the _initFormSettings method in
jquery.formbuilder.core.js with:

316 // first creation
317 if ($settings.val() == '') {
318 settings = options.settings[$language.val()];
319 for (var i = 0; i < options._languages.length; i++) {
320 options.settings[options._languages[i]].name += ' ' +
options.formCounter;
321 }
322 $formHeading.addClass(settings.classes[0]).append('<' +
settings.heading + ' class="heading">' + settings.name + '</' +
settings.heading + '>');
323 $('#name',
$builderForm).val($fbWidget._propertyName(options.settings['en'].name));
324 $this._updateSettings($this);
325 } else {
326 options.settings = $.parseJSON(unescape($settings.val()));
327 settings = options.settings[$language.val()];
328 } ..

But nothing for form structure loading.
Anybody did that already?

----Vz

Chee Kin Lim

unread,
Jan 30, 2012, 11:22:54 PM1/30/12
to jquery-form-b...@googlegroups.com
Hi Vz,

Thanks for using the plugin. The form structure load from DB by server-side technology such as PHP, django, Grails, etc.

You may refer the reference implementation of the server-side component of the jquery form builder plugin in Grails at http://code.google.com/p/grails-form-builder-plugin/. Please look into the architecture doc.

May I know your server-side platform? FYI, there are two developers implement the plugin with PHP and django.

Hope this help!

Best regards,
Chee Kin
Reply all
Reply to author
Forward
0 new messages