title: Task "Regarding" field not populating from subgrid in CRM 2013
body: <p>I am using CRM 2013 on-premise with UR1 installed</p>
  
  <p>I have a custom entity with a subgrid on it looking at related "tasks" which looks like this:
  <img src="https://i.stack.imgur.com/gB5Hu.png" alt="subgrid on custom entity"></p>
  
  <p>Whenever I create a task from the subgrid using the "+" button in the top right hand corner of the subgrid; the "Regarding" field of the newly created task remains blank. When it should be populated by a lookup to the record it was created from.</p>
  
  <p><img src="https://i.stack.imgur.com/8UphS.png" alt="Empty Regarding field on task created from custom entity"></p>
  
  <p>I have javascript on the task entity which checks the "Regarding" field to check what kind of entity it was created from (if it was created from one) and gets certain field values from the calling entity to populate fields on the task.</p>
  
  <p>Since the "Regarding" field is never filled the Javascript never fires - and the fields do not populate.</p>
  
  <p>When the record is saved, if the regarding field is blank (I have not manually filled it in) - it will eventually be populated by the correct record about 10 - 15 seconds later if you refresh the page. Then the correct fields will be populated and the user is able to edit the option set values and save again. This is not ideal for the user as they would like it to be one fluid action.</p>
  
  <p>Is there any way around this problem?</p>
  
  <p>EDIT for future browsers of this question:</p>
  
  <p>Found a partial work around. If you use an "Activity" subgrid rather than a "Task" subgrid the field will populate. This has a drawback though as you cannot edit the "Activity" subgrid's view to show "Task" specific fields.</p>