+ Start a Discussion
brijender singh rathore 16brijender singh rathore 16 

Can anyone help me with this visualforce page functionality

User-added image

I WANT TO MAKE CITY FIELD REQUIRED AND I HAVE MAKE IT REQUIRED BY ADDING THE CODE ON LINE 704 AND 705 BUT WHEN WE ARE ADDING ONLY  BLANK SPACES ON THE FIELD IT IS TAKING THEM AS A TEXT AND CREATING RECORD.SO PLEASE HELP.

POSTING THE CODE I USED


 
                <td class="ColLabel"><apex:outputText escape="false"  value="City"/><span class="required">*</span></td>
                <td class="ColValue"><apex:inputText value="{!sEmpCity}" maxlength="50" required="true"/></td>
              </tr>
NagendraNagendra (Salesforce Developers) 
Hi Rathore,

Sorry for this issue you are facing.

May I suggest you please refer to below help document which has considerations when using multiple spaces in Text or Picklist fields. Also, refer to below link which has a similar discussion. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra