Sean Thorne
07/22/2024, 10:32 AMcss
tabConfig.Sidebar(sidebarConfig =>
{
sidebarConfig.AddFieldset("Advanced", fieldsetConfig =>
{
fieldsetConfig
.AddField(rr => rr.UpdatedAt, fieldConfig => fieldConfig.MakeReadOnly())
.AddField(rr => rr.CreatedAt, fieldConfig => fieldConfig.MakeReadOnly())
// Can I make "IsWildcard" true if another property contains "*"???
.AddField(rr => rr.IsWildcard, fieldConfig => fieldConfig.SetDefaultValue())
.AddField(rr => rr.SiteId).SetDefaultValue(101);
});
});
I want to make the IsWildcard property true if the SourceUrl property is a wildcard (string ends in *
).
I've tried reading through documentation and googling, but I can't seem to find anything.
The docs indicate I can pass a function https://docs.umbraco.com/umbraco-ui-builder/collections/editors#setting-the-default-value-of-a-field but I'm not sure how to access the other properties / if is possibleJemayn
07/22/2024, 10:36 AMSean Thorne
07/22/2024, 10:43 AM