Hi @solernet
Just put a space in the field default value. This should show the field in view mode.
Thank you.
Thread Starter
STEVE
(@solernet)
Hi @mansurahamed,
If the user eventually edits their profile to add content to that field, does the system automatically strip out any leading space if the user starts typing after the space, ultimately leaving the space before the content?
Thanks
Thread Starter
STEVE
(@solernet)
@mansurahamed,
I was just thinking… this method you suggested probably wont work on any file that requires validation. For example, if I use a space as the default value for a Facebook field on the registration form, when the user submits the form without adding their Facebook URL, they should get the error message, “Please enter a valid Facebook username or profile URL” because there is only a space in that field. Is this correct?
Hi @solernet,
This will not work for all kinds of field. UM doesn’t have any feature to show empty profile fields right now. This may work work with some types of fields such as text field.
Thanks.
Thread Starter
STEVE
(@solernet)
Hi @mansurahamed,
I didn’t get a answer to this question…
If the user eventually edits their profile to add content to that field, does the system automatically strip out any leading space if the user starts typing after the space, ultimately leaving the space before the content?
Thanks
Hi @solernet,
Yes, you won’t see any extra space before the field value in view mode. It removes the space automatically when output.
Thanks.