Skip to content

Commit c65e336

Browse files
committed
Support v6 and also include attributes to avoid php warning
1 parent 94448f7 commit c65e336

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Signature pad question type for LimeSurvey
22
A LimeSurvey question theme that uses the [signature_pad](https://github.com/szimek/signature_pad) js library (MIT Licence) to allow for the display of a signature pad as a variation of the LimeSurvey short-free-text type question, and to store the signature as PNG [Data URI](http://en.wikipedia.org/wiki/Data_URI_scheme)
33

4-
First version is Compatible with LimeSurvey version 3.x
4+
Compatible with LimeSurvey versions 3.x,4.x,5.x,6.x
55

66
## Installation and Usage
77

signature/survey/questions/answer/shortfreetext/config.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,30 @@
77
<!-- Those metadata will be displayed in the template configuration page. They are not used for now. -->
88
<metadata>
99
<name>signature</name>
10+
<type>question_theme</type>
11+
<title>Signature Pad</title>
1012
<creationDate>2023-05-29</creationDate>
13+
<lastUpdate>2023-05-29</lastUpdate>
1114
<author>Adam Zammit</author>
15+
<authorUrl>https://www.acspri.org.au/</authorUrl>
1216
<authorEmail>[email protected]</authorEmail>
13-
<authorUrl>https://www.acspri.org.au</authorUrl>
1417
<copyright>Copyright (C) 2023 Australian Consortium for Social and Political Research Incorporated (ACSPRI)</copyright>
1518
<license>GNU General Public License version 2 or later</license>
1619
<version>1.0</version>
1720
<apiVersion>1</apiVersion>
21+
<lastSecurityUpdate>1.0</lastSecurityUpdate>
22+
<questionType>S</questionType>
23+
<group>Text questions</group>
1824
<description>Collect a signature from the respondent and save as base64</description>
1925
</metadata>
2026

27+
<compatibility>
28+
<version>3.0</version>
29+
<version>4.0</version>
30+
<version>5.0</version>
31+
<version>6.0</version>
32+
</compatibility>
33+
2134
<!--
2235
Here the list of the css/js files to load.
2336
Any file here will be loaded via the asset manager (when in config.php debug = 0)
@@ -29,8 +42,26 @@
2942
<js>
3043
<filename>scripts/signature_pad.umd.min.js</filename>
3144
</js>
45+
<preview>
46+
<filename>images/signature.png</filename>
47+
</preview>
3248
</files>
3349

50+
<attributes>
51+
<!-- Hide some core attributes -->
52+
<attribute>
53+
<name>prefix</name>
54+
<category>Display</category>
55+
<inputtype/>
56+
</attribute>
57+
<attribute>
58+
<name>display_rows</name>
59+
<category>Display</category>
60+
<inputtype/>
61+
</attribute>
62+
</attributes>
63+
64+
3465
<!-- Here datas about how LimeSurvey should load the core js/css of the question -->
3566
<engine>
3667
<load_core_css>true</load_core_css>

0 commit comments

Comments
 (0)