html-templates icon indicating copy to clipboard operation
html-templates copied to clipboard

Asterisks not shown for required fields

Open tylersand opened this issue 2 years ago • 4 comments

Self-asserted page v2.1.18 adds an asterisk for required fields. Using the Azure Blue template as a custom page, these are not shown.

image

Expected (as shown in non-custom page): image

tylersand avatar Feb 21 '23 01:02 tylersand

I encountered the same problem, but was able to fix it by adding the query parameter pageFlavor=oceanBlue to the URL specified in LoadUri.

shibayan avatar Apr 07 '23 04:04 shibayan

I encountered the same problem, but was able to fix it by adding the query parameter pageFlavor=oceanBlue to the URL specified in LoadUri.

When you say LoadUri, do you mean just adding it to the query string for the Custom Page URI? image

tylersand avatar Apr 14 '23 15:04 tylersand

Yes, that's right, LoadUri was talking about a custom policy, so never mind.

shibayan avatar Apr 14 '23 18:04 shibayan

I was able to add this JavaScript to the custom page to get it to work as expected: $('input,textarea,select').filter('[aria-required]').after('*');

tylersand avatar Apr 25 '23 22:04 tylersand