You need to sign in to do that
Don't have an account?
leoSFDC 13
Live agent prechat field assignment to task record
we are using live agent and in our web fom we have below mention code
<input type="hidden" name="liveagent.prechat.findorcreate.map:Task" value="Subject,Problem Type;RecordTypeId,TaskRecordTypeId" />
<select name="liveagent.prechat:Problem Type" id="problemType"> <option value="">Select Problem Type</option> <option value="Administration Tool issue">Administration Tool issue</option> </select>
this code is to create taks record from live chat.
i am assigning problem type to subject feld
i have one more field in our web form
<td colspan="3"><textarea rows="3" cols="55" name="liveagent.prechat:Task Subject," id="taskSubject" class="chatField DescriptionField subjectField"></textarea> </td>
how can i concatenate problem type and taskSubject to assign in task's subject field
<input type="hidden" name="liveagent.prechat.findorcreate.map:Task" value="Subject,Problem Type;RecordTypeId,TaskRecordTypeId" />
<select name="liveagent.prechat:Problem Type" id="problemType"> <option value="">Select Problem Type</option> <option value="Administration Tool issue">Administration Tool issue</option> </select>
this code is to create taks record from live chat.
i am assigning problem type to subject feld
i have one more field in our web form
<td colspan="3"><textarea rows="3" cols="55" name="liveagent.prechat:Task Subject," id="taskSubject" class="chatField DescriptionField subjectField"></textarea> </td>
how can i concatenate problem type and taskSubject to assign in task's subject field
if i try to create a prop in apex class and give value of that in input field like mention below
<input type="hidden" name="liveagent.prechat:ChatSubject" value="{!TaskChatSubject}" />
now for task creation i have done below mentioned code
<input type="hidden" name="liveagent.prechat.findorcreate.map:Task" value="Subject,ChatSubject;RecordTypeId,TaskRecordTypeId" />
if i assign prop TaskChatSubject='ffsfsf' in controller side on page load that will become the task subject
becase we are having code <input type="hidden" name="liveagent.prechat:ChatSubject" value="{!TaskChatSubject}" />
but when user clickes chat button even though i change the value liveagent.prechat:ChatSubject='test subject' in java script because value is alreay assign to task subject with this line
<input type="hidden" name="liveagent.prechat.findorcreate.map:Task" value="Subject,ChatSubject;RecordTypeId,TaskRecordTypeId" />
we are not able to get updated java script change text with task record
thanks in advance