This topic is locked
[SOLVED]

Conditional background color

11/29/2022 6:03:44 PM
PHPRunner General questions
B
Bill Walker authorDevClub member

Good day to all, I hope this post finds you well.
I would like to set the background color for all fields that are REQUIRED fields on the Add or Edit pages.
Any ideas or direction?
Thanks

M
Mark Kramer 11/30/2022

Look here for the "Field required" code https://www.w3schools.com/php/php_form_required.asp

Then look here for the cell conditional formatting https://xlinesoft.com/blog/2011/01/03/tutorial_conditional_formatting/

B
Bill Walker authorDevClub member 12/1/2022

Hi Mark, thanks for the reply.
I would like to know the required fields going into the form. I think your W3 example shows required fields on form submission?
The 'Conditional field styles' I think applies to lists only and not to add/edit pages?
I'm very new (still on trial) so I could be totally wrong about this.
Thanks again

admin 12/1/2022

Bill,

just wanted to say that if you cannot figure this out, post your project to the Demo Account and contact support directly. We will find a way to make it happen.

B
Bill Walker authorDevClub member 12/2/2022

Thank you 'admin', I will certainly do that.

B
Bill Walker authorDevClub member 12/2/2022

Sergey provided this very slick solution, thanks Sergey.

Proceed to Style Editor -> Custom CSS and paste the following code there:

.bs-inlinerequired input {
background: #ffbbbb !important;
}