You need to sign in to do that
Don't have an account?
salesforcesss_deveoper211
Apex:InutField html table with required red mark
Hi,
I have created a metrics using html table & apex:inputfield, here I set required attribute to true for field, but as I am adjusting the size of the inputfield the mandatory red mark appears on border of the table instaed of on field. Here is the code snipet,
<tr>
<td style="background-color: #1797C0; font-weight: bold; color:#FFFFFF; vertical-align:middle; padding-left: 8px" width="12%">ABC</td>
<td style="vertical-align:middle; text-align:center; width:10%;">
<apex:inputField value="{!ABC__c.Col1__c}" rendered="{!Not(column12ReadOnly)}" required="True" label="" style="width:50%;"/>
<apex:outputField value="{!ABC__c.Col2__c}" rendered="{!column12ReadOnly}" label="" style="width:50%;"/>
</td></tr>\
Also attached below how the field looks like in table. So how can i get the red mark near field.
Also attached below how the field looks like in table. So how can i get the red mark near field.
Hi ,
Use the Standard salesforce stylesheet and
use this
<td class="dataCol col02"><div class="requiredInput"><div class="requiredBlock"></div><input type="text" tabindex="3" size="20" name="name_lastcon2" maxlength="80" id="name_lastcon2"></div></td>
You can use FireBug. To get inspect the elements
Thanks
Shailu
Hi,
Sorry man, its not working there is no change in the position of red mark.