Form plugin

Hey,

I have tried to comment on Kevin's plugin but can't seem to send him a message and no comments box available so I am using this hoping he reads this forum.

I have installed the form plugin and set it up according to the specs. I was using it for users to submit recipes. After building my form and display configuration everything seemed to be working fine until I log out of my site to look at the public results. Sadly I got a completely blank page and could not go back on the site. So I had to delete the plugin and grieve the work I just had completed.

Anyone would have an idea to fix this...

  • Hi Pierre,

    The plugin README.txt files all include my email address - right near the top.

    My community page also tells you how to get hold of me.

    So I'm actually quite easy to get hold of.

    First question: Are you using the 0.7 version of the plugins?

    Does your whole site go blank, or just the the front page (which presumably includes the activity display)?

    Deleting the plugin does not delete any of the data in the database, so I doubt that you've lost any of your work.

    Keep in mind that this is beta code, as the plugin download page clearly states. Nevertheless, I'm keen to get all bug reports and help people with any bugs they may discover.

    Cheers,

    Kevin

  • Also, it would help if you send me more details on how you actually set up your form.

    Of course I tested the code before releasing it, including looking at the form display when logged out.

    So you must have done something that I didn't think to test, which is why details are important.

    If you can email me the details that would help and I will respond as soon as possible.

    Kevin

  • Hey thanks for the prompt reply. I am fully aware of its state and that is why I wanted to open communications on this site so others could contribute

    As far as I have noticed the whole site does go blank. It seems to me that it occurs at the display configuration level. My form is a pretty straight forward one. No tabs, text fields, drop downs, access fields and tags. As far a I know I have used some pretty straight forward html. I had not completed styling when it happened. So the only html in there were <p>.

    One other thing that might help was that it happened when I clicked on the logout in the top bar whilst on the display as a list page.

    Hope this help and feel free to get a hold of me if you need more information.

    Cheers,

    Pierre-Étienne

  • Hi Pierre,

    I need to know what you actually put into the form. As I said, I cannot currently duplicate this problem as content forms work for me. I just tried a form with a custom list and display template and everything works fine. I logout and see the activity report on the front page and it shows the two form submissions.

    Could you perhaps log-in, re-install the plugin, go to the form edit page and email me screenshots of what you have created?

    I'm keen to help you solve this problem, but I need more information to get some idea about what might be going wrong.

  • Fields:

    Edit | Remove | Move up | Move down | Move to top | Move to bottom Titre (recette_titre: text)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Courte description (courte_description: longtext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Type de cuisine (type_cuisine: choices)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Autre type de cuisine (autre_type_cuisine: shorttext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Type de plat (type_plat: choices)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Autre type de plat (autre_type_plat: shorttext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Catégorie de recette (categorie_recette: choices)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Autre catégorie de recette (autre_categorie_recette: shorttext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Quantité de portions (portion: shorttext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Ingrédients (ingredient: longtext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Préparation (preparation: longtext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Cuisson (cuisson: longtext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Note et commentaires (note: longtext)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Accès (access: access)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Mots clefs (keyword: tags)
    Edit | Remove | Move up | Move down | Move to top | Move to bottom Image (image: image_upload)

    List template

    <h2>{$recette_titre}</h2>
    <p>{$keyword}</p>
    <p>{$image:thumb} {$courte_description}</p>
    <p>{$_owner_icon}</p>
    <p><a href="/mod/form/{$_owner_url}">{$_owner_name}</a></p>
    <p>{$_full_view_link}<br /> {$_user_message_link}</p>

    Display Template

    <h2>{$recette_titre}</h2>
    <p>{$keyword}</p>
    <p>{$image:thumb} {$courte_description}</p>
    <p>{$_owner_icon}</p>
    <p><a href="/mod/form/{$_owner_url}">{$_owner_name}</a></p>
    <p>{$type_cuisine}</p>
    <p>{$autre_type_cuisine}</p>
    <p>{$type_plat}</p>
    <p>{$autre_type_plat}</p>
    <p>{$categorie_recette}</p>
    <p>{$autre_categorie_recette}</p>
    <p>{$portion}</p>
    <p>{$ingredient}</p>
    <p>{$preparation}</p>
    <p>{$cuisson}</p>
    <p>{$note}</p>
    <p>{$_user_message_link}</p>

  • I have uploaded the form plugin again and for some odd reason it works now. I can't seem to manage to reproduce the error. So I guess for now all is dandy but I will let you know if I manage to find the bug...

    Thanks

  • Hi Pierre,

    OK good news.

    I do notice that you have called your access field "access". Take a look at this bit in the form README.txt:

    The access pulldown allows the user to determine who gets to see this content.
    Currently a field with the access pull down type must always be called
    "access_id" or it will not work properly.

  • Thanks for that... Have you experience problems with the drop down menu fields. suddenly all the options I had put in there disapeared and when I write new ones nothing shows up on the form. I first thought it was because I was using accents (as this is in french) but doesn't seem to be the case...

  • Another... does the tag field need a specific title in order to work properly?

    thanks

  • I haven't seen the behaviour you mention with choice fields. There is a bit of JavaScript involved on the edit form page, so it is possible that this may have to do with the browser you are using. What browser/OS are you using? I have tested with Firefox and IE under Windows but nothing else yet.

    As Elgg stores all data as Unicode, I don't think that the accents should matter.

    The only required field is the internal name (and a field type, of course).