A
araqiel
Guest
I read the Chapter 7, but not work. I have a Contact object. With first name, last name fields and related object Company. I would like auto fill the email field. Composed by "firstName.lastName@company.com". On my page, I add Javascript, but not working. script function setEmail() { if ($("#nom").val().length 0 && $("#prenom").val().length 0) { $("#email").val($("#prenom").val().toLowerCase() + '.' + $("#nom").val().toLowerCase() + "@"); } if ($("#email").val() == ".") { $("#email").val(""); } } //select company function my_callback(relName, objId, values) { alert(relName + '-' + objId + '-' + values); } function getSociete() { rbf_getRelatedFields("R11603", id, "name", my_callback); } /script Thanks and Regards,
Continue reading...
Continue reading...