Check box problem

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
PeopleInside
Posts: 21
Joined: Mon Mar 14, 2011 10:03 pm

Check box problem

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Check box problem

Post 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

Code: Select all

if ($v['use'] && $v['place'])
add

Code: Select all

    	if ($k == 'custom5')
        {
        	continue;
        } 
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
PeopleInside
Posts: 21
Joined: Mon Mar 14, 2011 10:03 pm

Re: Check box problem

Post by PeopleInside »

Thanks
PeopleInside
Posts: 21
Joined: Mon Mar 14, 2011 10:03 pm

Re: Check box problem

Post 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?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Check box problem

Post 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'])
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply