Targetprocess

The Targetprocess Developer Hub

Welcome to the Targetprocess developer hub. Here you'll find comprehensive guides and documentation to help you start working with Targetprocess as quickly as possible and support you if you get stuck. Let's jump right in!

Docs
Ask A Question

Questions

How to have default content inside a Rich Text Custom Field?

Posted by Divya Narasimha Rao 3 months ago

Hi,

I would like to have some default content inside a rich text custom field whenever a feature has been created. I have created the custom field (type: rich text). Also, I have added some normal text in the entity template mashup for this feature. But I am unable to get the content inside that custom field.

                           if(entityTypeName == 'feature')
                            {
                              var templatefeatureprocess= 
                                '<div class=WordSection1> '<p class=MsoNormal>As a ……. I want ……….., so that ……</p>' + 
                                '<p class=MsoNormal>Further description ….</p>' 

                               //what will be the code to add content inside the rich text field//

                              $description.attr('data-placeholder', '');
                              $description.append('<div>' + templatefeatureprocess + '</div>');
                            }

Could you please help me on this.

Thank you,
Divya Narasimha Rao

Loading comments...