Modules and plugins

RSS
Page: ()  1 ...  185  186  187  188  189  190  191  192  193  194  195  196  197  198  199  200  201  202 ...656   ()

Block: Form Maker

Block screenshot
Type: Block
Requires: Moodle 1.9 or later
Status: Contributed
Maintainer(s): Caio "SBA" Almeida

Form Maker is a Moodle block that allows a Moodle administrator without technical skills create a HTML form and control its submissions.

General Features:
  • Developed as a Moodle block
  • Portable
  • Support many languages
  • It's not necessary any technical knowledge to create a form
Features on form creation:
  • Definition of title, header and footer (even HTML)
  • Definition of form fields: labels and possible values (validation will be done automatically because a Javascript will be generated based on the rules you set)
  • Possibility to filter by having Moodle account (only registered users can submit the form)
  • Limit by date and/or maximum number of submissions
  • Double submission is not allowed (check by e-mail)
  • Custom confirmation message sent to e-mail
  • New form submissions can be send automatically to some e-mail address
  • E-mail field will always be present
Features on form follow up:

Only admin can follow up the form submissions and control them, through the block edition interface.
  • Show number of submissions in form
  • Show due date and days remaining in form, if set
  • Show in the bottom of the form how many times the form can be submitted yet, if set
  • Form is automatically disabled when maximum number of submissions is achieved or limit date comes, if at least one of them is set. When both are set, the form is disabled when the first of them occours
  • Table showing all submitted data
  • Delete a submission
  • Export submitted data as PDF, XLS or ODT
How to use
  1. Add a Form Maker block to your interface
  2. Click on the edit link
  3. You can customize your form in the interface
  4. Form submissions can also be tracked and controlled through the block edition interface
Suggestions, bug reports or information, please send e-mails to caiosba@gmail.com


Record added by Caio SBA - Tuesday, March 31, 2009, 10:06 AM
Last modified - Monday, February 22, 2010, 12:09 AM
Picture of Aslam Sharif
by Aslam Sharif - Wednesday, April 1, 2009, 02:52 AM
 

Real nice, worked like a charm smile

Thanks,
Aslam

In the airplane
by Caio SBA - Wednesday, April 1, 2009, 07:02 AM
 

Good! I'm waiting for feedbacks to make this block even better.

Picture of Stephan Goeldi
by Stephan Goeldi - Tuesday, April 14, 2009, 10:20 PM
 

Doesn't work in my Moodle!
If I copy the content of form_maker.zip to moodle/blocks/form_maker, Moodle put out some rubbish and "Block form_maker: block_form_maker not implemented".

What did I wrong?

Greetings
Stephan

In the airplane
by Caio SBA - Saturday, April 25, 2009, 09:57 AM
 

What's your Moodle version and your operating system?
Weird... I've never seen this error message before...

Picture of Paolo Russu
by Paolo Russu - Tuesday, May 5, 2009, 06:04 PM
 

What's wrong?

Picture of Paolo Russu
by Paolo Russu - Tuesday, May 5, 2009, 06:06 PM
 

Hi,
I have the same problem: "Block form_maker: block_form_maker not implemented"

This is the output code:
-----------------------------------------------------------------------------
* Moodle UFBA, 2008 */ error_reporting(0); // Class that defines our block class block_form_maker extends block_base { // Constructor function init() { $this->title = get_string('form_maker', 'block_form_maker'); $this->version = 2008070900; } // Specialization function specialization() { if ($this->config->customtitle) { $this->title = $this->config->customtitle; } else { $this->config->customtitle = ''; } } // Loads content in our block function get_content() { global $CFG; // Initial setups if ($this->content !== NULL) { return $this->content; } $this->content = new stdClass; $this->content->text = ""; if (isset($this->config->header)) { $this->content->text .= $this->config->header; } $instance = $this->instance->id; // Form $num = 0; $form = ""; for ($i=0; $i < 10; $i++) { $v = ""; if (isset($this->config->field[$i])) { $v = $this->config->field[$i]; } $n = $instance."field[$i]"; if ($v) { $form .= ""; $form .= ""; $num++; } } $form .= ""; $form .= ""; $date_valid = 1; $max_valid = 1; // Check date if ($this->config->date) { $date = explode("/", $this->config->date); $exp_date = "$date[2]-$date[1]-$date[0]"; $todays_date = date("Y-m-d"); $today = strtotime($todays_date); $expiration_date = strtotime($exp_date); if ($expiration_date >= $today) { // Valid $daysleft = round(($expiration_date - $today)/86400); $how = $daysleft.' '.get_string('days','block_form_maker'); if ($daysleft == 0) { $how = get_string('today','block_form_maker'); } else if ($daysleft == 1) { $how = get_string('tomorrow','block_form_maker'); } $form .= ""; } else { // Not valid $form .= ""; $date_valid = 0; } } $enrolled = count_records('block_form_maker','instanceid',$this->instance->id); // Show number of users if ($this->config->showcount) { $form .= ""; } // Check max number of users if ($this->config->max && $date_valid) { if ($enrolled < $this->config->max) { $form .= ""; } else { $form .= ""; $max_valid = 0; } } if ($date_valid && $max_valid) { $form .= "
---------------------------------------------------------------------------------

What's wrong?
Paolo.

Picture of ranjan shrivastava
by ranjan shrivastava - Thursday, June 11, 2009, 08:56 PM
 

It could be an issue with PHP version. Try replacing '<?' to '<?php' in 'block_form_maker.php', 'block_form_maker_remove.php' and 'block_form_maker_submit.php' files.

Picture of Dion Baker
by Dion Baker - Wednesday, June 17, 2009, 11:28 AM
 

I have had the same problem. After migrating from one system to another, PHP code, comments and all, would show up in all the pages, completely breaking the front page (it would put all the columns into one long column, with the code int he middle) and making other pages very annoying (it would show at the top of the page, so you had to scroll down to see whatever you were looking at), but only when logged in at Course Creator or Administrator. The code is exactly the same as Paolo posted.

It's running perfectly fine on the current box:

Windows XP SP2
Apache 2.2.3
PHP 5.2.0
MySQL 5.0.27

But after I've migrated it to the new server, it stuffs things up:

Windows Server 2008 Enterprise
IIS 7.0.6
PHP 5.2.9.2
MySQL 5.1.31

While the block was installed on the IIS system, I could however get rid of the problem by hiding the Site Administration box and turning editing off.

This block was not used by anyone on the old system, it's still there from a few months ago, so I have removed it completely to avoid problems.

Picture of Randy Wiggins
by Randy Wiggins - Friday, June 19, 2009, 02:40 AM
 

Is there a module that will do the same thing but as an activity vs. a block? Or can this one be modified to do so?

Picture of Gary Barclay
by Gary Barclay - Monday, July 6, 2009, 05:59 PM
 

It could be an issue with PHP version. Try replacing '<?' to '<?php' in 'block_form_maker.php', 'block_form_maker_remove.php' and 'block_form_maker_submit.php' files.

This worked for me. Cheers.

Gary

Picture of ryan sanders
by ryan sanders - Monday, July 20, 2009, 01:16 PM
 

if (changing <? to <?php) worked

check your php.ini file for php. i don't remember correct term it uses but i want to say "short tags"

most likely you do not have this setting turned on.

most main php applications out there like moolde stay with <?php but when ya get into addons/plugins/etc... every now and then, someone will code it with short tags, or even skip one by accident.

other words, i have done this myself a couple times *doh* that was a couple days wasted learning about short tags *laughs*




In the airplane
by Caio SBA - Saturday, July 25, 2009, 09:33 AM
 

Good it worked!
All feedbacks are always welcome smile

now with Less Beard(TM)
by Jeffrey Silverman - Wednesday, August 12, 2009, 12:56 AM
 

Not to add another "me too" but here is my "me too" with good programming practice reasons to STRONGLY recommend that PHP short tags be removed.

Please update the download .zip archives to reflect this minor bugfix. The PHP short tags are still in place as of 10AUG2009.

Using PHP short tags on a large, distributed, Open Source project like Moodle is a Bad Idea. (Actually, it is always a Bad Idea to ever use PHP short tags, and they should be stricken from the language, IMO). Moodle is intended to be run in as portable a fashion as possible. Full PHP tags is the only way to ensure portability.

I'm not scolding, I'm just making a strong recommendation based on 10+ years of web programming and web-and-systems administration experience.

Thanks!

Incidentally, here is a Perl one-liner to fix this problem. WARNING: Careful! Test! You may delete your whole site if you don't understand who this one-liner works! Every character in this one-liner is needed, especially the first backslash and the parens.

perl -p -i -e 's/<\?([^p])/<?php$1/g' *.php *.html

Picture of Miki Alliel
by Miki Alliel - Tuesday, August 18, 2009, 07:18 PM
 

Great and useful Block

Thank you very much!

Chris as a Tiger, ready to test Moodle 2
by Chris Collman - Thursday, August 20, 2009, 12:13 AM
 

Hi All,
Started using this block. I have noticed on my 1.9.5, that the sample I created only outputted the field names of the first two fields and no data. I was able to see the entry I created and I received an email confirming my entry.

I think these discussions should be in the "Contributed Code" forum and this block should have at least one page in MoodleDocs. I am swamped at the moment but will do this bit of housekeeping with the links on this page and in MoodleDocs before the week is out.

Best to all, and thank Caio for this contribution. Chris

In the airplane
by Caio SBA - Thursday, August 20, 2009, 10:37 AM
 

Hi everyone! First of all, thank you for your interest!

Let's go...

Jeffrey Silverman, thanks for your explication! I've replaced all occurrences of '<?' by '<?php'. No more short PHP tags.
Hope this solve some problems that were told before.
I've also updated the .zip with this bug fix. Please, everybody that had problems on using the block, get it and see if problems still happen. If so (or not) please give a feedback.

Miki Alliel, thanks for your comment and for your contribution on translating it to hebrew! I've included the language file you sent me in this updated version of the block.

Chris Collman, thank you very much for your comment! Please check again the behaviour with this updated version.
Well, if you create an entry on Moodle Docs and/or in the forum, I will be very thankful. And I really thank it's a good idea.

Once more, thank you everybody for all feedback. It's always welcome. Help me on improving this block.


Picture of Alberto Vasciaveo
by Alberto Vasciaveo - Wednesday, September 16, 2009, 12:49 AM
 

Hi,
Thank you for that very useful block!
I'd ask you if it's possible send by e-mail the data received in form directly at administrator.
In this case I avoid connect and read the result at any time in moodle site.
Thanks!

Picture of Jan Viljoen
by Jan Viljoen - Friday, September 18, 2009, 11:15 PM
 

Hi. Thanks the block works great and install with no difficulty at all. It also sends confirmation e-mails to the person completing the form. Unfortunately they receive stuff that doesn't make sense, see below...

X-Mailer: PHP/5.2.4-2ubuntu5.5
Mime-Version: 1.0
Content-Transfer-Encoding: BASE64
Message-Id: <20090918121427.724BE8032D@moodle.ecomwise.co.za>
Date: Fri, 18 Sep 2009 14:14:27 +0200 (SAST)

VGhhbmtzIGZvciB5b3VyIGludGVyZXN0LCB5b3VyIGRldGFpbHMgd2lsbCBiZSBmb3J3YXJkZWQg

YW5kIHlvdSB3aWxsIGJlIGNvbnRhY3RlZCBzb29uIHRvIGZpbmFsaXNlIHJlZ2lzdHJhdGlvbi4=

I use the form block as a registration form for guests and people visiting my site. I just want to know if it is possible to disable the form display (I use it on the front page at the moment) once a registered user is locked in.

Thanks again for the great block.

In the airplane
by Caio SBA - Monday, September 21, 2009, 05:28 AM
 

Hi everyone!

Alberto Vasciaveo, it's not possible yet, but it's really a good idea, Miki Alliel has suggested the same... well, and I agree with you two, so it's something I will implement soon. When it's done, I will update it here.

Jan Viljoen, as I said in the e-mail I sent, it seems like the content-transfer-encoding is wrong. Test the modified version I sent and see if it works. If so, I'll update it here.

Caio

In the airplane
by Caio SBA - Saturday, September 26, 2009, 02:17 AM
 

Updated!

Based on a bug report by Jan, now the content transfer encoding of the e-mail sent is forced to be 7bit.

Hope it helps others wink

In the airplane
by Caio SBA - Sunday, October 18, 2009, 07:30 AM
 

Hi there!

New version of FormMaker released!

I implemented an idea suggested by Miki Alliel, Alberto Vasciaveo, and others.

Now it's possible to choose some e-mail address that will receive automatically all new form submissions.

What means that you don't need to connect every time to check for new data. When a new form is submitted, its data will be send at the same time to the chosen e-mail.

Thanks,

Caio

Picture of Michael  Custer
by Michael Custer - Tuesday, November 3, 2009, 07:19 AM
 

Can someone please explain how to install this block? 

Thanks in advance.

In the airplane
by Caio SBA - Thursday, November 5, 2009, 10:10 AM
 

Hi Michael!

First of all, thanks for your interest in using the Form Maker block.

Well, it's not necessary anything special. You can install it as you would do with any other block.

Just copy the form_maker folder to the Moodle blocks/ folder and then access http://yourmoodle/admin to install it.

Following these steps, does anything strange happen?

Regards,

Caio

Picture of Jorge Silva
by Jorge Silva - Sunday, November 8, 2009, 05:16 AM
 

Olá.

Não consigo colocar o form maker a funcionar.

Depois de o instalar e de o activar, na página de configurações só me aparece:

Form Maker

Be careful modifying these settings - strange values could cause problems.

e o botão Save Changes.

Não aparecem quaisquer opções e o form maker também não me aparece nas Actividades.

Alguma sugestão?

Moodle Version: 1.9.4

In the airplane
by Caio SBA - Monday, November 9, 2009, 10:34 AM
 

Olá Jorge!

O FormMaker é um bloco, e então deve ser inserido em um curso ou na página principal.
As opções aparecerão quando, após inserir o bloco e ativar a edição, você clicar no ícone "editar".
Esta mensagem que você mostrou é da tela de edição global do bloco, que de fato não tem nenhuma opção.

Espero ter sido claro. Se ainda tiver alguma dúvida, estou a disposição.

Picture of Jorge Silva
by Jorge Silva - Tuesday, November 10, 2009, 11:11 PM
 

Caio,

Obrigado!

Já consegui!

Parabéns por este bloco!

In the airplane
by Caio SBA - Wednesday, November 11, 2009, 06:33 AM
 

Obrigado, Jorge! smile

Picture of Michael  Custer
by Michael Custer - Sunday, November 22, 2009, 12:21 AM
 

I'm still having no success on loading this block. Moodle does not acknowledge the app. when I click on Notifications. 

I sure could us this block but I can't seem to get it loaded.  Any help would be appreciated.

This is what I'm working with:

Moodle 1.9.1 Build 20080625.

OS:  Windows Server 2003 Standard Edition, Service Pack 2

Server: IIS 6.0

MySQL Server 5.0.51b

PHP 5.2.6

Any help would be much appreciated!wink

In the airplane
by Caio SBA - Monday, January 11, 2010, 08:29 PM
 

Hi Michael! I really don't know what's happening... When you copy the folder formmaker to your Moodle blocks folder and then access /admin from your browser, is the installation performed?

If not, check the permissions of the formmaker folder. The web server can read it?

Well, I don't have much experience with Windows environments. The reason above is the only one I thought now.

sleepy dog
by Daniel Wahl - Tuesday, January 12, 2010, 09:17 AM
 

just downloaded the latest version and it seems to be missing version.php from the zip - easy enough to create one, but it still should be resolved.

me
by Samantha Bailey - Thursday, April 22, 2010, 10:50 PM
 

is there any possible way of adding radio button or check button options on to the form?

thanks in advance,
sam

In the airplane
by Caio SBA - Friday, May 7, 2010, 02:31 AM
 

Samantha, it is not possible yet... but it's an idea to be implemented later smile

Picture of Lauren Hertel
by Lauren Hertel - Monday, May 24, 2010, 12:24 AM
 

Just wondering how I'd change the font and font size in the form labels? I'd like to make them match the rest of my site. Thanks for a great block!!!

In the airplane
by Caio SBA - Tuesday, May 25, 2010, 11:06 AM
 

Hi Lauren! First, thank you for using the FormMaker block!
You can easily change the font and font size (or any other visual aspect of the block) by just setting the style in your theme, in some CSS file. There is a class block_form_maker that can be used for that.

In the airplane
by Caio SBA - Tuesday, May 25, 2010, 11:10 AM
 

Hi everyone!

The block was updated!
I've just added the german translation made by Samuel Witzig.
Thank you very much, Samuel!

Picture of Chris Surtees
by Chris Surtees - Thursday, June 3, 2010, 05:01 AM
 

The block works fine for myself.

Although it does not seem to display correctly in IE8 (works fine in Firefox and Chrome)

 

Any suggestions?

Picture of Paul Westeneng
by Paul Westeneng - Friday, June 4, 2010, 04:13 AM
 

Hi Caio,
For me it's a great block. I'm definitely going to use it. Obrigado!
I tested it on IE 8 and FireFox. Both work great.

Nevertheless, after thorough testing I have some remarks. I hope you don't mind:

1) I live in Holland. We use a different date format. You don't perform localization on the date format. (so now i have to use "any value" instead or create a regular expression?)
2) When I use an invalid value, this is notified by the form and i just have to change it. But when I use the same e-mail address twice, the entire form is reset (this will not happen often in real life I guess)
3) When the form is submitted acopy is sent to the admin e-mail with the date and time of submission. I guess you use the server time and not the time according to the local time zone of the admin. As I live in the Netherlands and my server is hosted in USA, this is quite a difference.

Further on some requests for additional features:
1) Turning the block into an activity (I have seen this before)
2) The ability to select a value out of a set of available options (eg dropdown) for example male/female or a set of dates.

I will try to make a Dutch translation of the language file and send it to you as soon as it is ready.

Regards,
Paul.

In the airplane
by Caio SBA - Tuesday, June 8, 2010, 10:08 AM
 

Chris Surtees,

I tested in IE8 and it worked fine. Can you give more details, or better, a screenshot?

In the airplane
by Caio SBA - Tuesday, June 8, 2010, 10:47 AM
 

Hi Paul! Thank you for your feedback and block rating! wink

Thank you for your suggestions. Based on your requests, the following features will be implemented in later versions:

  • Check by Ajax if e-mail address is already taken
  • Localization in date format
  • Use checkbox and dropdown fields
More details are available in the e-mail that I sent to you.

Thank for your contribution!
I've already updated the official version of the block here at Moodle.org including the dutch translation that you made. You'll find your credits there. wink

Regards,

Caio


Page: ()  1 ...  185  186  187  188  189  190  191  192  193  194  195  196  197  198  199  200  201  202 ...656   ()