Fix any title or label that contain name of own entity
[civicrm-core.git] / xml / schema / Campaign / Survey.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <table>
3 <base>CRM/Campaign</base>
4 <class>Survey</class>
5 <name>civicrm_survey</name>
6 <comment>Campaign Survey Details.</comment>
7 <add>3.2</add>
8 <icon>fa-clipboard</icon>
9 <labelField>title</labelField>
10 <component>CiviCampaign</component>
11 <field>
12 <name>id</name>
13 <title>Survey ID</title>
14 <type>int unsigned</type>
15 <required>true</required>
16 <comment>Survey id.</comment>
17 <html>
18 <type>Number</type>
19 </html>
20 <add>3.3</add>
21 </field>
22 <primaryKey>
23 <name>id</name>
24 <autoincrement>true</autoincrement>
25 </primaryKey>
26
27 <field>
28 <name>title</name>
29 <title>Survey Title</title>
30 <type>varchar</type>
31 <length>255</length>
32 <required>true</required>
33 <localizable>true</localizable>
34 <comment>Title of the Survey.</comment>
35 <import>true</import>
36 <add>3.3</add>
37 </field>
38
39 <field>
40 <name>campaign_id</name>
41 <title>Campaign ID</title>
42 <type>int unsigned</type>
43 <default>NULL</default>
44 <comment>Foreign key to the Campaign.</comment>
45 <html>
46 <label>Campaign</label>
47 </html>
48 <add>3.3</add>
49 </field>
50 <foreignKey>
51 <name>campaign_id</name>
52 <table>civicrm_campaign</table>
53 <key>id</key>
54 <add>3.3</add>
55 <onDelete>SET NULL</onDelete>
56 </foreignKey>
57
58 <field>
59 <name>activity_type_id</name>
60 <title>Activity Type</title>
61 <type>int unsigned</type>
62 <default>NULL</default>
63 <comment>Implicit FK to civicrm_option_value where option_group = activity_type</comment>
64 <import>true</import>
65 <add>3.3</add>
66 <pseudoconstant>
67 <optionGroupName>activity_type</optionGroupName>
68 </pseudoconstant>
69 <html>
70 <type>Select</type>
71 </html>
72 </field>
73 <index>
74 <name>UI_activity_type_id</name>
75 <fieldName>activity_type_id</fieldName>
76 <add>3.3</add>
77 </index>
78
79 <field>
80 <name>recontact_interval</name>
81 <title>Follow up Interval</title>
82 <type>text</type>
83 <comment>Recontact intervals for each status.</comment>
84 <html>
85 <type>TextArea</type>
86 <rows>20</rows>
87 <cols>80</cols>
88 </html>
89 <add>3.3</add>
90 </field>
91
92 <field>
93 <name>instructions</name>
94 <title>Instructions</title>
95 <type>text</type>
96 <localizable>true</localizable>
97 <comment>Script instructions for volunteers to use for the survey.</comment>
98 <html>
99 <type>TextArea</type>
100 <rows>20</rows>
101 <cols>80</cols>
102 </html>
103 <add>3.3</add>
104 </field>
105
106 <field>
107 <name>release_frequency</name>
108 <title>Survey Hold Duration</title>
109 <type>int unsigned</type>
110 <default>NULL</default>
111 <comment>Number of days for recurrence of release.</comment>
112 <add>3.3</add>
113 </field>
114
115 <field>
116 <name>max_number_of_contacts</name>
117 <title>Maximum number of contacts</title>
118 <type>int unsigned</type>
119 <default>NULL</default>
120 <comment>Maximum number of contacts to allow for survey.</comment>
121 <add>3.3</add>
122 </field>
123
124 <field>
125 <name>default_number_of_contacts</name>
126 <title>Default number of contacts</title>
127 <type>int unsigned</type>
128 <default>NULL</default>
129 <comment>Default number of contacts to allow for survey.</comment>
130 <add>3.3</add>
131 </field>
132
133 <field>
134 <name>is_active</name>
135 <title>Survey Is Active</title>
136 <type>boolean</type>
137 <default>1</default>
138 <comment>Is this survey enabled or disabled/cancelled?</comment>
139 <add>3.3</add>
140 </field>
141
142 <field>
143 <name>is_default</name>
144 <title>Is Default Survey</title>
145 <type>boolean</type>
146 <default>0</default>
147 <comment>Is this default survey?</comment>
148 <add>3.3</add>
149 </field>
150
151 <field>
152 <name>created_id</name>
153 <title>Created By Contact ID</title>
154 <type>int unsigned</type>
155 <comment>FK to civicrm_contact, who created this Survey.</comment>
156 <html>
157 <label>Created By</label>
158 </html>
159 <add>3.3</add>
160 </field>
161 <foreignKey>
162 <name>created_id</name>
163 <table>civicrm_contact</table>
164 <key>id</key>
165 <add>3.3</add>
166 <onDelete>SET NULL</onDelete>
167 </foreignKey>
168
169 <field>
170 <name>created_date</name>
171 <type>datetime</type>
172 <title>Campaign Created Date</title>
173 <comment>Date and time that Survey was created.</comment>
174 <add>3.3</add>
175 </field>
176
177 <field>
178 <name>last_modified_id</name>
179 <title>Modified By Contact ID</title>
180 <type>int unsigned</type>
181 <comment>FK to civicrm_contact, who recently edited this Survey.</comment>
182 <html>
183 <label>Modified By</label>
184 </html>
185 <add>3.3</add>
186 </field>
187 <foreignKey>
188 <name>last_modified_id</name>
189 <table>civicrm_contact</table>
190 <key>id</key>
191 <add>3.3</add>
192 <onDelete>SET NULL</onDelete>
193 </foreignKey>
194
195 <field>
196 <name>last_modified_date</name>
197 <title>Survey Modified On</title>
198 <type>datetime</type>
199 <comment>Date and time that Survey was edited last time.</comment>
200 <add>3.3</add>
201 </field>
202
203 <field>
204 <name>result_id</name>
205 <title>Survey Result</title>
206 <type>int unsigned</type>
207 <default>NULL</default>
208 <comment>Used to store option group id.</comment>
209 <add>3.3</add>
210 </field>
211 <field>
212 <name>bypass_confirm</name>
213 <title>No Email Verification</title>
214 <type>boolean</type>
215 <default>0</default>
216 <comment>Bypass the email verification.</comment>
217 <add>4.2</add>
218 </field>
219 <field>
220 <name>thankyou_title</name>
221 <title>Thank-you Title</title>
222 <type>varchar</type>
223 <length>255</length>
224 <localizable>true</localizable>
225 <comment>Title for Thank-you page (header title tag, and display at the top of the page).</comment>
226 <add>4.2</add>
227 </field>
228 <field>
229 <name>thankyou_text</name>
230 <title>Thank-you Text</title>
231 <type>text</type>
232 <html>
233 <type>TextArea</type>
234 <rows>8</rows>
235 <cols>60</cols>
236 </html>
237 <localizable>true</localizable>
238 <comment>text and html allowed. displayed above result on success page</comment>
239 <add>4.2</add>
240 </field>
241 <field>
242 <name>is_share</name>
243 <title>Is shared through social media</title>
244 <type>boolean</type>
245 <default>1</default>
246 <comment>Can people share the petition through social media?</comment>
247 <add>4.4</add>
248 </field>
249 </table>