- Posts: 17
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Custom text fields plugin
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
6 months 3 weeks ago #250881
by SolutionsNZ
Custom text fields plugin was created by SolutionsNZ
This post refers to a plugin I cannot seem to find by Denis Chenu
forums.limesurvey.org/index.php/forum/de...elds-to-survey-admin
I also would like to add custom text fields to Admin and various parts of the survey,
I'm redesigning the CSS on the landing pages to incorporate different data.
Does the plugin still exist?
forums.limesurvey.org/index.php/forum/de...elds-to-survey-admin
I also would like to add custom text fields to Admin and various parts of the survey,
I'm redesigning the CSS on the landing pages to incorporate different data.
Does the plugin still exist?
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
6 months 3 weeks ago #250890
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Custom text fields plugin
[url]
gitlab.com/SondagesPro/SampleAndDemo/exampleSettings
[/url]
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 months 3 weeks ago #250897
by SolutionsNZ
Replied by SolutionsNZ on topic Custom text fields plugin
Thanks however its probably not current, when I loaded it I got "Configuration file config.xml does not exist"
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 months 3 weeks ago - 6 months 3 weeks ago #250980
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Custom text fields plugin
Try adding your own config.xml file to the exampleSettings plugin folder.
Code:
<?xml version="1.0" encoding="UTF-8"?> <config> <metadata> <name>exampleSettings</name> <type>plugin</type> <creationDate>2014-05-27</creationDate> <last_update>2019-10-25</last_update> <author>Denis Chenu</author> <authorUrl>https://www.limesurvey.org</authorUrl> <version>0.1.1</version> <license>GNU General Public License version 2 or later</license> <description><![CDATA[Example Settings]]></description> </metadata> <compatibility> <version>6.0</version> <version>5.0</version> </compatibility> <updaters disabled="disabled"> </updaters> </config>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 months 3 weeks ago by tpartner.
Please Log in to join the conversation.
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 months 3 weeks ago #250984
by SolutionsNZ
Replied by SolutionsNZ on topic Custom text fields plugin
Thanks Tony
Tried that and got "The plugin could not be installed or updated: Could not parse config.xml file."
I think its close though and the system does recognise the existence of the file, possibly only a minor change or two and it should be in business.
Attached is the zip file I am now using, Not being a dev or knowing this system myself I'm not keen to adjust this file myself.
Tried that and got "The plugin could not be installed or updated: Could not parse config.xml file."
I think its close though and the system does recognise the existence of the file, possibly only a minor change or two and it should be in business.
Attached is the zip file I am now using, Not being a dev or knowing this system myself I'm not keen to adjust this file myself.
Attachments:
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
6 months 3 weeks ago #250991
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Custom text fields plugin
Hi, there is a small error in the folder name.
The folder has to have the same name as the plugin php file.
So you only have to rename the folder to "exampleSettings", zip it to "exampleSettings.zip" and it is fine.
Joffm
The folder has to have the same name as the plugin php file.
So you only have to rename the folder to "exampleSettings", zip it to "exampleSettings.zip" and it is fine.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 2 weeks ago #251100
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Custom text fields plugin
I'm happy to have a Pull Request for ExampleSettings
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 months 2 weeks ago - 6 months 2 weeks ago #251103
by SolutionsNZ
Replied by SolutionsNZ on topic Custom text fields plugin
Thanks the plugin was installed, however clicking it once installed lead to a 500 error:
As well as the error image file I attached the zip file as it stands with the correct folder name.500: Internal Server Error The asset "/home/decisions/public_html/s/plugins/exampleSettings/assets/logo.png" to be published does not exist.An internal error occurred while the Web server was processing your request.
As well as the error image file I attached the zip file as it stands with the correct folder name.500: Internal Server Error The asset "/home/decisions/public_html/s/plugins/exampleSettings/assets/logo.png" to be published does not exist.An internal error occurred while the Web server was processing your request.
Attachments:
Last edit: 6 months 2 weeks ago by SolutionsNZ.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
6 months 2 weeks ago #251126
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Custom text fields plugin
Hi,
1. I do not really know, why you want to click here
2. If you call the plugin it looks fine
3. The problem seems to be:
The plugin is uploaded to
but the logo is searched here
plugins/exampleSettings/assets/logo.png
Now you may
create the folder "exampleSettings/assets" in "plugins" and copy a logo there, resulting in
or
1. I do not really know, why you want to click here
2. If you call the plugin it looks fine
3. The problem seems to be:
The plugin is uploaded to
but the logo is searched here
plugins/exampleSettings/assets/logo.png
Now you may
create the folder "exampleSettings/assets" in "plugins" and copy a logo there, resulting in
or
- copy the entire folder from "upload/plugins" to "plugins",
- make sure to keep the "assets" folder with the logo
- uninstall it from "upload/plugins"
- do a new "scan files"
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 months 2 weeks ago - 6 months 2 weeks ago #251131
by SolutionsNZ
Replied by SolutionsNZ on topic Custom text fields plugin
Great thanks this line fixed the problem
"Now you may
create the folder "exampleSettings/assets" in "plugins" and copy a logo there"
So now the plugin works.
However, what I'm wanting to do with this plugin is add different text elements to the survey (or set of surveys) and I'm really not clear on how this happens.
There appears to be nothing in the plugin settings or within the surveys themselves that allow me to create additional text fields for a survey (or have I completely misunderstood what the purpose of this plugin was?)
"Now you may
create the folder "exampleSettings/assets" in "plugins" and copy a logo there"
So now the plugin works.
However, what I'm wanting to do with this plugin is add different text elements to the survey (or set of surveys) and I'm really not clear on how this happens.
There appears to be nothing in the plugin settings or within the surveys themselves that allow me to create additional text fields for a survey (or have I completely misunderstood what the purpose of this plugin was?)
Last edit: 6 months 2 weeks ago by SolutionsNZ.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 2 weeks ago - 6 months 2 weeks ago #251137
by DenisChenu
There are no way currently to do this in plugin except for
- Question part using beforeQuestionRender
- javascript using beforeSurveyPage
- with replace in getPluginTwigPath but you can loose sme update on survey theme
Currently the best place for this are the Survey theme, but there are a lack of textarea settings then you can not use included automtaic system for settings ( see gitlab.com/SondagesPro/SurveyThemes/skel.../tree/master/options for sme example).
See this issue : bugs.limesurvey.org/view.php?id=18895
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Custom text fields plugin
Maybe best is to explain what you want to doThere appears to be nothing in the plugin settings or within the surveys themselves that allow me to create additional text fields for a survey (or have I completely misunderstood what the purpose of this plugin was?)
There are no way currently to do this in plugin except for
- Question part using beforeQuestionRender
- javascript using beforeSurveyPage
- with replace in getPluginTwigPath but you can loose sme update on survey theme
Currently the best place for this are the Survey theme, but there are a lack of textarea settings then you can not use included automtaic system for settings ( see gitlab.com/SondagesPro/SurveyThemes/skel.../tree/master/options for sme example).
See this issue : bugs.limesurvey.org/view.php?id=18895
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 6 months 2 weeks ago by DenisChenu. Reason: Third solution : wtig replace
Please Log in to join the conversation.
- SolutionsNZ
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
6 months 2 weeks ago - 6 months 2 weeks ago #251154
by SolutionsNZ
Replied by SolutionsNZ on topic Custom text fields plugin
Ok well what I want to do, which is what I thought this plugin did, is to add different text elements to the start of a survey.
I imagined it would go under the "Text Elements" tab.
I was also hoping with fingers crossed that some of the elements could be established in the survey's group, which would appear by default for each survey in the group, but could be removed or more added etc.
I was also hoping fingers crossed that the design for boxes containing the text could be established in group settings (or individual survey settings), probably under Theme. Survey Admins could move these boxes around the pages and change text, fonts, colours etc.
So thats what I was "hoping" and "imagining" could happen....
In this screen shot, in the in the Welcome Message you can see that some of the text could also be from dropdowns and multiple choice, but this could be going from "hoping" and "imagining" to "clearly dreaming"
I imagined it would go under the "Text Elements" tab.
I was also hoping with fingers crossed that some of the elements could be established in the survey's group, which would appear by default for each survey in the group, but could be removed or more added etc.
I was also hoping fingers crossed that the design for boxes containing the text could be established in group settings (or individual survey settings), probably under Theme. Survey Admins could move these boxes around the pages and change text, fonts, colours etc.
So thats what I was "hoping" and "imagining" could happen....
In this screen shot, in the in the Welcome Message you can see that some of the text could also be from dropdowns and multiple choice, but this could be going from "hoping" and "imagining" to "clearly dreaming"
Last edit: 6 months 2 weeks ago by SolutionsNZ.
Please Log in to join the conversation.