Page 1 of 1
Check box problem
Posted: Thu Aug 29, 2013 8:56 am
by PeopleInside
What terms did you try when SEARCHING for a solution: Check box problem
Write your message below:
I want insert Agree Terms in the form of new ticket but if i put a custom field check box to accept condictions i'm unable to insert html text with link to the page of term and condictions. HTML not alowed
Re: Check box problem
Posted: Thu Aug 29, 2013 10:05 am
by Klemen
HTML is not allowed for security reasons.
What you can try is to manually add the HTML code into HESK "submit a ticket" form (index.php).
For example if your terms of service checkbox is custom field number 5:
Code: Select all
<tr>
<td style="text-align:right" width="150" valign="top">Terms:</td>
<td width="80%"><label><input type="checkbox" name="custom5" value="Y" /> I agree to the <a href="">Terms of Service</a></label><br /></td>
</tr>
Then add a check not to print the custom field 5 in index.php just ABOVE
add
Code: Select all
if ($k == 'custom5')
{
continue;
}
Re: Check box problem
Posted: Thu Aug 29, 2013 10:25 am
by PeopleInside
Thanks
Re: Check box problem
Posted: Fri Sep 13, 2013 7:53 pm
by PeopleInside
Code: Select all
<tr>
<td style="text-align:right" width="150" valign="top">Terms:</td>
<td width="80%"><label><input type="checkbox" name="custom5" value="Y" /> I agree to the <a href="">Terms of Service</a></label><br /></td>
</tr>
where i can add this in index.php?
Re: Check box problem
Posted: Mon Sep 16, 2013 12:34 pm
by Klemen
In a HTML table in the print_add_form function. For example just before
Code: Select all
</table>
<?php
}
if ($hesk_settings['question_use'] || $hesk_settings['secimg_use'])