• Is there a way we can show empty fields on profile pages? Right now as it is, if a user doesn’t fill in a field, that field is omitted from the display of the profile. I would like it so that the header of the filed is still displayed even though they didn’t fill in the content of the field. Is this possible and if so how?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    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?

    Plugin Support mansurahamed

    (@mansurahamed)

    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

    Plugin Support mansurahamed

    (@mansurahamed)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can show empty fields on profile pages?’ is closed to new replies.