Default value for profile updates

Is it possible to hide a field in a form and set it to something I want, automatically (i.e. set a “default value”)?

1 Like

Great question! You can use a regular input field and give it an ms-data=“something” attribute. This is just like a ms-field attribute, but it’s for personalizing text and pre-populating form fields. Here’s help center article that goes into more detail.

You can also add the following input code to an embed on your site. It’s set to type=“hidden” so screen readers and folks navigating with their keyboards can’t stumble onto it.

<input type="hidden" ms-data="email" value="">
1 Like