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
madhu l 1madhu l 1 

hi guys text data type not working,if select text data type,it will show error invalid data type,please help me how to come out this error

Vishal_GuptaVishal_Gupta
Hi Madhu,

If you are creating a variable/property in your controller then you need to use following data type to capture text :

Public String txtValue{get;set;}

Please let me know if I can help you more.

Thanks,
Vishal
debasis jena 35debasis jena 35
Hi Madhu,

Are you trying to cretae Text data type in apex? if yes then instead of text type use string.

ex: public string name;
public string name{get;set;}

or are you not able to create a field in object with data type as text? if yes please share the more details so that we can find out exact issue here.