Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 19    Views: 197

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
12/01/13 12:18 AM (11 years ago)

New Plugin: Webform Generator

Took a trip out of town this weekend, and was able to finish my long-awaited Webform Generator plugin on the plane (and on my friend's couch!). This plugin will allow you to collect user information from the app and send it off to a php script (or save it locally on the device). The php script can do whatever you create it to, such as email the results to someone or save it to a database. A few things to note: 1) You will need to write your own php script, and upload it to your own server. Buzztouch.com does not allow php scripts to be uploaded. Most low-cost hosting providers/servers allow php, so it shouldn't be hard to do. If you don't know how to write php, a sample script can be found at: https://www.dropbox.com/s/53j94mdpujjbchb/sampleWebformScript.php You will need to move this to your server and then link it to the plugin on the control panel page. Please don't bombard me with emails about how you can create your own script to do X, Y or Z. Post your questions about php on the forums so if I can't get to it right away, someone else can. 2) If you previously purchased my Webform Generator plugin, this is NOT backward-compatible. I totally redesigned this from the ground-up, giving greater flexibility over design/layout while reducing the footprint significantly. 3) This is for iOS 3.0 projects only. If enough people demand it, I'll consider making it for iOS 2.0 projects. Also, I'll eventually get to Android, but it will be a while. Not sure whether that will be part of this plugin, or a different one altogether. It depends on how similar I make it and whether it makes sense to be one big plugin or not.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/01/13 12:50 AM (11 years ago)
This should be pretty popular. It's something a lot of folks have asked for. Nice Job! :) Cheers! -- Smug
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
12/01/13 03:29 AM (11 years ago)
I'm confused, what advantage does this plugin have over just using a local HTML page to display a webform that submits to a remote php file?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/01/13 06:09 AM (11 years ago)
It's entirely native, allowing for a much better user experience.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/01/13 07:36 AM (11 years ago)
Bought. Regarding the childItems section. What does your config_cp.txt look like. Is it a customInclude? Like this { "fileType": "customInclude", "fileName": "childItems.html" },
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/01/13 09:25 AM (11 years ago)
'custom' not 'customInclude'
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/01/13 09:54 AM (11 years ago)
And actually, if you're a plugin developer, this plugin is worth the $25 just to see how the child items are setup. If you notice, the child item properties page change based on the type of child item, dynamically adding certain properties. All done using JavaScript.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/01/13 10:06 AM (11 years ago)
We heard about this in the early spring at the St. Louis Buzzcon. Nice to have it finally released -- congratulations! ;-) I wonder when will Stobe release his config file switcher plugin? Wasn't it called The Transformator? He had previewed it to us at the Buzzcon. Chris -- JavaScript -- In a native plugin? -- Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/01/13 10:07 AM (11 years ago)
It's totally native - the JavaScript is just for the control panel
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/01/13 10:14 AM (11 years ago)
About time @chris1! We been waiting on this one..great job! LA
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/01/13 10:19 AM (11 years ago)
"And actually, if you're a plugin developer, this plugin is worth the $25 just to see how the child items are setup. If you notice, the child item properties page change based on the type of child item, dynamically adding certain properties. All done using JavaScript." Yep, ran a diff on it this morning.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
12/01/13 10:31 AM (11 years ago)
That's great news, thanks Chris. Farcat
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/01/13 01:23 PM (11 years ago)
Do you know what this part does? //reference to the form... var frm = document.forms[0]; //create the JSON string to pass to use in childItemAddJson form element... var newItemJson = "{"; newItemJson += "\"itemType\":\"BT_menuItem\", "; newItemJson += "\"fieldName\":\"" + frm.fieldName.value + "\", "; newItemJson += "\"fieldType\":\"" + frm.fieldType.value + "\""; newItemJson += "}";
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/01/13 01:46 PM (11 years ago)
When I put in new data on the form, I get this error and it will not save: {"result":"error", "errors":"nickname already in use, no duplicates allowed"} LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/01/13 03:11 PM (11 years ago)
@nadthevlad - that sets the initial values for the childitem @LA - not sure what's going on there. Had that happen once to me and thought it was a fluke. Change the nickname to something else and you should be fine
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
12/01/13 03:58 PM (11 years ago)
Thank you chris1, that worked! LA
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/01/13 06:36 PM (11 years ago)
Nice job. Hope to see it for Android soon - otherwise I guess in the meantime I can jump to a mobile friendly web page on my site where I have a form, eh?
 
Vicentin
Lost but trying
Profile
Posts: 85
Reg: Nov 22, 2013
Orihuela
2,050
like
12/02/13 07:03 PM (11 years ago)
Same as pdog I am interested on that king of plugin but i need it for both, iOS and Android. Regards
 
Janeen
Aspiring developer
Profile
Posts: 51
Reg: Jun 11, 2013
Southern Califo...
6,910
like
03/03/14 09:31 PM (11 years ago)
I've recently purchased this plugin and I'm slowly getting it configured in my first app. I have created several text fields and the keyboard pops up whenever I type into these fields. However, for the last couple of text fields the keyboard displays over the text fields I'm typing in, and there is no "done" key on the keyboard to close the keyboard after I've finished typing. Is there any way to get a "done" key on the keyboard or allow for a way to close the keyboard once I've finished typing in the text field? Thanks!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/13/15 09:24 AM (10 years ago)
Does this plugin send the response back to the device? I can figure it out if not so no big deal,just wondering.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.