2017 © Pedro Peláez
 

craft-plugin formerly

Craft Plugin that allows users to build their own forms and view form submissions

image

sealink/formerly

Craft Plugin that allows users to build their own forms and view form submissions

  • Wednesday, August 1, 2018
  • by sealink-developers
  • Repository
  • 13 Watchers
  • 0 Stars
  • 1,518 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 0 Open issues
  • 13 Versions
  • 10 % Grown

The README.md

Formerly 1.7.0

Installing

  1. Copy the formerly directory into your craft/plugins directory
  2. Browse to Settings > Plugins in the Craft CP
  3. Click on the Install button next to Formerly

Setting up forms

Users (both admin and client) can easily create forms in the Formerly admin section, under the Forms tab. A form consists of:, (*1)

  • A name, used as the title of the form that a visitor to the site may see
  • A handle, used to programatically refer to this form
  • Several emails that will be sent upon the submission of a form by a visitor
  • Several questions which make up the form

Outputting the form

A form can be rendered using, e,g., (*2)

{% set form = craft.formerly.form('handle') %}
{% include 'form.html' with { form: form } %}

Where form.html is Twig code that iterates through the form's questions, creating form markup. An example form.html is provided with the source code for this plugin., (*3)

You can also obtain a form instance by having a content editor select a form using the Formerly field type, e.g., (*4)

{% include 'form.html' with { form: entry.form } %}

Viewing submissions

Form submissions are a Craft Element, which means that you can query them using regular ElementCriteriaModels. For example, to list submissions to the competition form who have selected Australia as their country:, (*5)

{% set submissions = craft.formerly.submissions
  .form('competition')
  .country('Australia')
  .sort('dateCreated desc') %}
{% for submission in submissions %}
  Name: {{ submission.name }}
  Email: {{ submission.email }}
  {# ... #}
{% endfor %}

Todo

  • Better validation
  • More question attributes, e.g. placeholder, error messages

The Versions

01/08 2018

dev-fix-an-erro-to-display-submission-list

dev-fix-an-erro-to-display-submission-list

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-master

9999999-dev

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-rebased-master

dev-rebased-master

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-readme-version

dev-readme-version

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-changelog

dev-changelog

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-changelog-code-fix

dev-changelog-code-fix

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

08/02 2017

dev-sync-parent-repo

dev-sync-parent-repo

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital
by Alex Brindal

17/11 2016

dev-old-master

dev-old-master

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital
by Alex Brindal

03/09 2016

1.6.0

1.6.0.0

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital

27/04 2016

1.5.4

1.5.4.0

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital
by Alex Brindal

29/02 2016

1.5.3

1.5.3.0

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital
by Alex Brindal

23/02 2016

1.5.2

1.5.2.0

Craft Plugin that allows users to build their own forms and view form submissions

  Sources   Download

The Requires

 

by XO Digital
by Alex Brindal

22/02 2016

1.5.1

1.5.1.0

Form Plugin for Craft

  Sources   Download

The Requires

 

by Alex Brindal