Forum Discussion
SP- Online Form Formatting header
- May 05, 2021
Patty2190 Yes it is possible. You can change the color of header text based on Yes/No (Boolean) column.
Check below code sample for your requirements:
{ "elmType": "div", "txtContent": "[$Title]", "style": { "color": "=if([$InternalNameOfYesNoColumn], 'green', 'red')", "font-weight": "bold" } }
Notice expression in color attribute.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Patty2190 Yes it is possible. You can change the color of header text based on Yes/No (Boolean) column.
Check below code sample for your requirements:
{
"elmType": "div",
"txtContent": "[$Title]",
"style": {
"color": "=if([$InternalNameOfYesNoColumn], 'green', 'red')",
"font-weight": "bold"
}
}
Notice expression in color attribute.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.