function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tashika GuptaTashika Gupta 

change of datatype on onclick event

I am creating a vf page in which wat i want is to change the data type of my custom feild from text area to rich text area on onclick event when
i click on image(which edit my records) and again when i save it it get converted into text area
Please help me out.

Thank in advance!!!

sharathchandra thukkanisharathchandra thukkani
It is not possible to convert the metadata data type using apex can you post your code?
Tashika GuptaTashika Gupta
Hello sharathchandra,
I workaround and find a new way , intially created my feild as rich text area n by using javascript hide it in click of onclickevent
sharathchandra thukkanisharathchandra thukkani
ok on click of save you are reloading the page so you are not able to see the text field. On load check which field is not empty and show that field.