pluginsglpi / formcreator Goto Github PK
View Code? Open in Web Editor NEWGLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
Home Page: http://www.teclib-edition.com
License: GNU General Public License v3.0
GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
Home Page: http://www.teclib-edition.com
License: GNU General Public License v3.0
I configure a dropdown list field A, and a date field B. The date field B is configured to be visible only if A = something, and is mandatory.
I'm expecting the date field B is mandatory only if visible. If not, it should be ignored.
The plugin says I must fill the field B, despite it is hidden.
new general config available with glpi : rich text for assistance
I noticed this in SQL-errors.log
I do not have any information about the context of this error.
Notice the followinf part of the query :
AND ( glpi_plugin_formcreator_forms
.entities_id
IN () )
The keyword IN refers to an empty group of values.
2014-09-11 18:42:43
*** MySQL query error:
SQL: SELECT glpi_plugin_formcreator_forms.id, glpi_plugin_formcreator_forms.name, glpi_plugin_formcreator_forms.description
FROM glpi_plugin_formcreator_forms
WHERE glpi_plugin_formcreator_forms.is_active
= 1
AND (glpi_plugin_formcreator_forms.language
= 'fr_FR' OR glpi_plugin_formcreator_forms.language
= '')
AND ( glpi_plugin_formcreator_forms
.entities_id
IN () )
AND (access_rights
!= 2 OR glpi_plugin_formcreator_forms.id
IN (
SELECT plugin_formcreator_forms_id
FROM glpi_plugin_formcreator_formprofiles
WHERE plugin_formcreator_profiles_id = 0))
AND helpdesk_home = 1
ORDER BY glpi_plugin_formcreator_forms.name ASC
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') )
AND (access_rights
!= 2 OR glpi_plugin_formcreator_forms' at line 5
Backtrace :
/var/www/glpi/plugins/formcreator/ajax/homepage_forms.php :18 DBmysql->query()
/var/www/glpi/plugins/formcreator/ajax/homepage_forms.php
Le valideur du formulaire devient le demandeur du ticket créé.
Il faut que le demandeur initial qui a rempli le formulaire soit toujours le demandeur du ticket.
Thank you and congratulations for this plugin :)
I program a form with a field containing 2 radio buttons (values yes / no)
I program an other field (a list) which must be shown only if the first field = Yes
On preview : the conditional field never appears.
Add WYSIWYG editor in formcreator for GLPI 0.85 which accept formatted text in ticket.
Add an option for each form to select "Number of days before resend request validation".
--> an automatic action resend request validation with this option
Add a right for each profile "Add button to resend request validation".
--> if "Yes" : on the form answer, this user has a button to resend request validation.
To be discuss.
Not very important, but only one notification with raw text in english is available.
we can use tag for this text
I'm using FusionInventory and FusionInventory agent
Since I upgraded to FormsCreator v2, php-errors.log is filled several times per minut with the following errors :
2014-09-08 08:39:32
Notice(8): Undefined index: glpiactiveprofile
Backtrace :
/var/www/glpi/plugins/formcreator/setup.php:66 Toolbox::userErrorHandlerNormal()
/var/www/glpi/inc/plugin.class.php:101 plugin_init_formcreator()
/var/www/glpi/inc/includes.php:130 Plugin::load()
/var/www/glpi/plugins/fusioninventory/b/deploy/index.php:43 include()
2014-09-08 15:29:51
Notice(8): Undefined index: glpiactiveprofile
Backtrace :
/var/www/glpi/plugins/formcreator/setup.php:66 Toolbox::userErrorHandlerNormal()
/var/www/glpi/inc/plugin.class.php:101 plugin_init_formcreator()
/var/www/glpi/inc/includes.php:130 Plugin::load()
/var/www/glpi/plugins/fusioninventory/index.php:43 include()
I'm the only user of the plugin FusionIvnentory and I think the error comes from the HTTP requests made by the agents.
Comparing the timestamps in php-errors.log and Apache's access.log shows I'm probably right.
When a FI Agent sends a HTTP request to GLPI, I think the variable $_SESSION['glpiactiveprofile'] is not defined, and this generates an error in Form Creator v2
master of 2015, 23 jan
( ! ) Fatal error: Class 'dropdownField' not found in glpi/plugins/formcreator/inc/fields/glpiselect-field.class.php on line 3
Call Stack
1 0.0002 240520 {main}( ) ../form.form.php:0
2 0.0524 2130232 PluginFormcreatorForm->saveForm( ) ../form.form.php:50
3 0.0530 2535472 include_once( 'glpi/plugins/formcreator/inc/fields/glpiselect-field.class.php' ) ../form.class.php:850
In technician mode, it's troublesome to view form item between Assets and Helpdesk.
I think best will be a subitem of Assistance
With a account able to manage forms, I open a form from the list.
If I use the arrows on top of the current form to switch to the first form, the previous form, the next form or the last form, the display is refreshed, but the current form does not change as expected.
EDIT : Notice the URL contains the variable "id" twice, with different values after trying browsing from a form to an other.
Dans la page de réponse d'un formulaire (lorsqu'il est validé : de façon automatique ou avec le process de validation) il serait interessant de voir quel ticket (destination) est lié à ce formulaire (si destination il y a).
Exemple concret :
The idea is to customize the display of the form by a css file included in a theme (for example).
Example - Configuration :
Example - Display :
Add the possibility to target entities, groups, profiles and specific user for a form.
Reproduce the functionnalities from "Reminders" and "knowbase items".
En plus de la possibilité de lier un champ à un "Intitulé" de GLPI.
Il faudrait pouvoir lier à un objet de GLPI : exemple les utilisateurs.
If a field is used to generate the title of a ticket, FormCreator v2 does not replace ##answer_xx## with its content.
That was working with the latest v1 (svn)
(In add question form -> in the dropdown for 'type' of question)
There's no way to transfer a form
When a change has been recorded to the ticket, the requester may receive an email notification. Add an option to disable notifications to requesters, an other to disable notifications to observers and an third one for technicians.
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/glpi/plugins/formcreator/inc/targetticket.class.php on line 87
with version of the day, update plugin and a message appears
I define a conditional date field. It must show only if a dropdown field contains a specific value.
When the dropdown contains the expected value, the date field appears as expected, but its width is near of 0. I cannot see the date I pick up in the JS calendar.
The message "Élément supprimé définitivement avec succès : <name_of_former_category_deleted>" is not show when a category is deleted. It's show when you view a other page.
Have the possibility to display or not the validation request field based on a condition an another field
and it result a right error.
You can see it in validation dashboard for example
Add a validation process (optional) to forms before creating tickets or sending to other destinations.
- Add a field "The form need to be validated (Yes/No)"
- If the previous field is set to "Yes": Add 2 multiselect fields with validators (users with ticket validation abilities) to set witch users can be chosen by end-user to be the validator. (All validators by default).
- Automatically add a field at the end of the form: "Choose a validator". A select field with allowed validator.
- The form is saved into database with a state "waiting for validation"
- A notification e-mail must be send to the chosen validator
- The validator can accept or refuse the form. If refused, a refused comment is required.
- If accepted: The form is processed like now (ticket(s) creation)
- If refused: the form get a status of "refused by validator" and can be edited by requester and resubmitted. A notification is sent to the requester when refused.
- 2 blocs should be added to the form list:
- "My forms (requester)" => (last 10 forms user submitted. status refused and waiting in priority)
- "My forms (validator)" => (last 10 forms waiting for validation and with user as validator)
- A list page (with search engine) with:
- all forms if user is validator or administrator
- all forms submitted by user otherwise
- A link button near "search" and "config" buttons in toolbar
To reproduce, make this form :
Question1 - Radios - Values "1", "2"
Question2 - Select - Show only if Question1=2 - Values "A", "B", "Other"
Question3 - Text - Show only if Question2=Other
Bug on this form :
1- Select value "2" at Question1
2- Select value "Other" at Question2 (Question3 appears => ok)
3- Select value "1" at Question1 => Question3 does not disappear !
Regards,
Jonas
Upgrade process from FormCreator v1 to v2 creates ticket templates in root entity.
They should be created in the same entity as the form.
After answer validation (not tested without validation), the creation of the ticket fails because the miss of _user_id_requester field
la condition ne semble pas sauvegardée
When a user has no right to see it's planning, the forms list form is not displayed because it relies on (a[href*=front/planning.php])
Another solution should be found to display the form when it's needed.
While trying a specific configuration of a field, i forgot to set the title a a question. GLPI crashes with a blank page and the following message :
PHP Notice: Undefined index: plugin_formcreator_sections_id in /var/www/glpi/plugins/formcreator/inc/question.class.php at line 512
Fatal error: Call to a member function fetch_array() on a non-object in /var/www/glpi/glpi/inc/dbmysql.class.php on line 268
EDIT :
After trying to reproduce to fill this bug report, I recreated my question correctly. Upon validation, the I got several error messages saying the title is missing (I did not fill the title 3 times, and I got the message three times too). Hopefully, the question is correctly saved in database.
Fonctionnalité qui permet de "cloner" un formulaire existant vers un nouveau formulaire.
Afin d'accélérer la création de formulaires qui se ressemblent.
Le nouveau formulaire récupère toutes les infos de l'ancien :
En cas de formulaire à valider, puis refusé, lorsque son auteur ouvre le formulaire, en haut, sous l'entête du formulaire s'affiche 'Refusé' (en rouge)
Mais s'il s'agit d'un formulaire accepté, alors il ne s'affiche qu'un petit carré vert.
De même, si c'est le valideur qui ouvre un formulaire qu'il a refusé, il ne s'affiche rien du tout.
When I am in an entity A > B, and I use a form to create a ticket, the locations dropdown may show locations in entity A which are not recursive.
If a user do not select an entry in a LDAP list, the value displayed on the generated ticket is the first entry of the list instead of a zero value.
En mettant un champ de type "Liste LDAP", si l'utilisateur ne sélectionne rien dans la liste, la valeur de la première entrée de la liste est prise en compte dans le ticket généré (et même si "Afficher une valeur vide" est sélectionné), au lieu d'une valeur nulle ou vide.
While setting up a form I see 2 warnings in debug mode. Here are the backtraces :
2014-10-16 15:06:09
Notice(8): Undefined index: validation_required
Backtrace :
/glpi/inc/toolbox.class.php:531 Toolbox::userErrorHandlerNormal()
/glpi/plugins/formcreator/inc/form.class.php:319 Toolbox::userErrorHandlerDebug()
/glpi/plugins/formcreator/front/form.form.php:77 PluginFormcreatorForm->showForm()
2014-10-16 15:06:09
Notice(8): Undefined index: validation_required
Backtrace :
/glpi/inc/toolbox.class.php:531 Toolbox::userErrorHandlerNormal()
/glpi/plugins/formcreator/inc/form.class.php:363 Toolbox::userErrorHandlerDebug()
/glpi/plugins/formcreator/front/form.form.php:77 PluginFormcreatorForm->showForm()
In the des tination "ticket" add the possibility to ad one or more tasks with specific title, description, categories, status, private or no, and assigned to fields.
The title and description must be parsed to replace TAGS by questions answers like in ticket.
some regular expressions are wrong after upgrading to FormCreator v2
It appears that v1 automatically added leading and trailing regex marker, but v2 does not longer adds them.
Workaround : update my regex and add the '/' character before and after the regex string.
FormCreator v2 should add it in DB in the upgrade process.
In target destination "ticket", add the possibility to target a specific field to fill with the answer of a specific question.
Add translation pt-BR to the formcreator plugin
(french)
L'idée étant de pouvoir historiser la demande initiale (matérialisée par l'enregistrement d'un ticket) et de conserver dans l'historique du ticket le choix de l'approbateur (accepté ou refusé).
On IE 8, links (add a section, add a target) doesn't work.
To comply with GLPI UI, it will be better to change links by buttons
The javascript error is 👍
Objet attendu
form.form.php ligne 1
Code: 0 catactère 1
URI: http://glpidev/plugins/formcreator/front/form.form.php?id=1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.