Jump to content

Clearing custom field

Featured Replies

Posted
  • Community Expert

I have a custom field set up so that users can pick from a list where they sit in the stadium, I'm having a thick day as it is so maybe it's something obvious, but say a user then decides he/she doesn't want to show where they sit anymore there is no option (that I can see) to clear the field. I added a blank space in as a choice but it still leaves the ticket icon, any ideas? 

Screen Shot 2016-06-17 at 16.43.50.png

Screen Shot 2016-06-17 at 16.43.19.png Screen Shot 2016-06-17 at 16.46.50.png

Could you provide details on how you've put the item in place in the user pane - is it a plugin or a template edit? Provide the existing code you have used, including css (if any)

Edited by Nathan Explosion

  • Author
  • Community Expert

No plugins being used, just custom profile field 

Screen Shot 2016-06-17 at 19.49.25.png

Screen Shot 2016-06-17 at 19.49.51.png

Screen Shot 2016-06-17 at 19.50.02.png

 

Second closing tag  '/span' in Display format what role?

  • Author
  • Community Expert
2 minutes ago, Adlago said:

Second closing tag  '/span' in Display format what role?

No role, just a mistake. Removed now.

  • Author
  • Community Expert

Just been playing with the settings, changed from select box to checkbox set, that didn't work as users could select multiple options, reverted back to select box and the select box has changed, now I can cmd + click to deselect.

 

Screen Shot 2016-06-17 at 20.29.27.png

Interesting behaviour - I'm going to log that as a bug. But here's a solution to your problem:

Change the space option to None

Set this as your display format:

<span class='STHolder' data-role='{content}'><i class='fa fa-ticket'></i>{content}</span>

And then pop this in your css:

span[data-role="None"]{
  display:none;
}

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.