Hi All,
I have this, I think, simple question.
We have few field on out osTicketing system, two of them are email and contacemail.
emial - person logging a call
contactemail - person that we should Cc on all updates
Sometimes its same email address
I am wondering, would there be option to add checkbox that will say "if your email is same to contact email, click on checkbox" and this will copy email to contactemail?
See this done in javascript but cant figure it out in PHP
In JS this is HTML Head
<script language="JavaScript">
function cpAdres()
{
if (document.forms.adres_kopia.checked == true)
{
document.forms.adreskor_miasto.value = document.forms.adres_miasto.value;
}
else
{
document.forms.adreskor_miasto.value = '';
}
}
//</script>
In JS this is HTML Body
<input type="checkbox" name="adres_kopia" onclick="cpAdres();" value="on"><font face="Tahoma" color="#000000" size="2">Taki sam, jak adres stałego zameldowania</font>
Tried to copy this to open.php but no success
Any ideas, please?