webpart/widget layout macros

lawrence whittemore asked on June 4, 2019 20:14

I need to add a macro to a webpart layout that pulls a custom field from a widget. I can't seem to get macros on the webpart layout to work. Is this even possible?

Recent Answers


Brenden Kehren answered on June 4, 2019 20:31

Webpart layouts are C# code so you probably won't be able to get a macro to work properly. I've seen many people just add the field in the webpart and hide/show it based on some visibility properties and/or set the default value to a macro in the webpart.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.