Answered by:
javascript on form on save event

Question
-
I am getting the attribute now in the email. Thanks
I have another error
In my javascript on form on save event I have
document.write (document.location.href);
crmForm.all.xxx_recordlink.DataValue = "http://xxxx:/xxxDEV09/userdefined/edit.aspx?id="+
crmForm.ObjectId.substring(1, crmForm.ObjectId.length - 1);this is throwing me an error what is the issue in that line
- Split by Donna EdwardsMVP Friday, August 20, 2010 4:01 PM
Friday, August 20, 2010 3:02 PM
Answers
-
Hi
You just need to do the following
crmForm.all.xxx_recordlink.DataValue = "http://xxxx:/xxxDEV09/userdefined/edit.aspx?id ="+ crmForm.ObjectId
Doing this concatenates record GUID to the string.
Thanks,
Amar
- Marked as answer by Donna EdwardsMVP Friday, August 20, 2010 10:18 PM
Friday, August 20, 2010 7:59 PM -
- Proposed as answer by Amarsen Vangoor Friday, August 20, 2010 7:59 PM
- Marked as answer by Jim Glass Jr Friday, August 20, 2010 8:02 PM
Friday, August 20, 2010 4:44 PM
All replies
-
- Proposed as answer by Amarsen Vangoor Friday, August 20, 2010 7:59 PM
- Marked as answer by Jim Glass Jr Friday, August 20, 2010 8:02 PM
Friday, August 20, 2010 4:44 PM -
Hi
You just need to do the following
crmForm.all.xxx_recordlink.DataValue = "http://xxxx:/xxxDEV09/userdefined/edit.aspx?id ="+ crmForm.ObjectId
Doing this concatenates record GUID to the string.
Thanks,
Amar
- Marked as answer by Donna EdwardsMVP Friday, August 20, 2010 10:18 PM
Friday, August 20, 2010 7:59 PM