Issue with templates in basic field editor via makeXMLDoc

  • 1
  • Question
  • Updated 2 years ago
It seems there is some issue with rendering of templates on fields editor developed dynamically using makeXMLDoc. Below is my xmlDefinition -

var xmlDefinition = $xml(    '<basicfieldeditor showheader="true" showsavecancel="false" showerrorsinline="true" model="CreateClientMeeting" buttonposition="" uniqueid="sk-3uSe9z-86" mode="edit"/>'    
).append(
    $xml('<columns/>').append(
        $xml('<column width="100%"/>').append(
$xml('<sections/>').append(
$xml('<section title="Create Client Meeting" collapsible="no"/>').append(
$xml('<fields/>').append(
$xml('<field id = "Subject__c"/>'),
$xml('<field id = "On_Behalf_of__c"/>'),
$xml('<field type="COMBO" editmodebehavior="autopopup"/>').append(
$xml('<label>Client(s)</label>').append(
$xml('<template/>').append(
$xml('<input type="radio" value = "Hi"/>')
)
)
),
$xml('<field id = "Client_Contacts__c"/>'),
$xml('<field id = "End_Date__c"/>'),
$xml('<field id = "Start_Date__c"/>'),
$xml('<field id = "Start_Time__c"/>'),
$xml('<field id = "End_Time__c"/>'),
$xml('<field id = "Meeting_Type__c"/>'),
$xml('<field id = "Location__c"/>'),
$xml('<field id = "Description_Meeting_Summary__c"/>'),
$xml('<field id = "Associated_Attribute__c"/>')
)
)
)
)
    )    
);

I basically need below code in the template field -

<table>  <tr>
    <td>
<textarea id="investor" rows="4" cols="70" readonly required>{{{Investor_s__c}}}</textarea>
    <td>
<img onclick="getInvestor();return false;" class="lookupIcon" src="/s.gif"  />
    </td>
  </tr>
</table>

Any idea how can we implement the template in makeXMLDoc?

Here is the output of my code -

Photo of Vivek Gupta

Vivek Gupta

  • 378 Points 250 badge 2x thumb
  • frustrated

Posted 2 years ago

  • 1
Photo of Vivek Gupta

Vivek Gupta

  • 378 Points 250 badge 2x thumb
Any Luck?