HTML Editor insert, programatically

I have an HTML field I use for users to update notes on a product record.
When I create the product record, I want to update the HTML field programatically with data that is determined at create time, eg: date, time, user name, etc

How do I update an HTML editor field with info?

I am not sure if this will help. but you could use ajax, or sometimes ill concat my fileds in a grid view so after the form is filled out. ill graphicly see it in the grid. If you could give more of an example. it may help with a more solid answer…

I have a product creation form and allow the user to fill it with information. When the blank form is opened, the HTML edit box should already be populated with information that the system produces ex: the time stamp and an underline.

I guess, you want to replace the content of the html field with other content of field?
I had done something like this some years ago. I used some variable to be replace in the html content, such as @field1@, @field2@.
When we need to show the content, we could do it by using string replacement.

Hope this helps.

Didnty work for me, but I ill play using the concept

That is a varchar or a text field, you can initialize what you need. You can modify one and the look up on the field how it saved.

Also I use it as templates for send mails. You can define variable as @limtjiesiong told you. Then replace that variable with a field value.

For example, Dear @name in a loop you select the fields and replace variables.

Regards.

1 Like