Try our conversational search powered by Generative AI!

Required block property only shows up when creating the form. It doesn't show up in the edit window.

Vote:
 

I have a drop down property that looks like this:

[Display(
    Name = "Display Mode",
    GroupName = SystemTabNames.Settings,
    Order = 20)]
[SelectOne(SelectionFactoryType = typeof(ComponentDisplayModeSelectionFactory))]
[Required]
public virtual string DisplayMode { get; set; }

When I create the block, the property shows up. But after the block has been created, it doesn't show up when I edit the block. This is in my local dev enviornment. It hasn't been published yet.

#288864
Oct 08, 2022 21:39
Vote:
 

Did you check the settings tab of your block? The 'GroupName' in your code dictates which tab the property is displayed in, and it is set to 'Settings'.

Otherwise you could check the browser console for any errors. 

#288899
Edited, Oct 08, 2022 23:27
eperezjr - Oct 09, 2022 2:06
Well, crap. You're right. I copied it from another block without even thinking about that. Thanks for the help.
Ynze - Oct 09, 2022 2:13
Yeah, that has happened to me before. Happy to help!
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.