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
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