You need to sign in to do that
Don't have an account?
brijender singh rathore 16
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
Can anyone help me with this visualforce page functionality
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>
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.
- https://help.salesforce.com/articleView?id=000205656&type=1
Also, refer to below link which has a similar discussion.- https://developer.salesforce.com/forums/?id=906F000000090ErIAI
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra