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
LA_193LA_193 

Can any one suggest me How to display the suffix of the chemical formula in salesforce

Hi 

 

 Our requriement is 

 

Displaying Suffix of the Chemical Formula in VFpage 

 

Ex:  C6H5NH2

 

Here the suffix  are 6,5,2 

 

I need to display   these suffix  as  shown below

 

C6H5 NH2

 

 

Thanks

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
BharathimohanBharathimohan

Hi,

 

Please try the below line

 

<apex:outputText >C<sub>6</sub>H<sub>5</sub>NH<sub>2</sub></apex:outputText>

 

<sub> is the tag used for Subscripts in HTML.

 

 

Regards,

Bharathi
Salesforce For All

Mark this post as solved, if it helps you