Required Fields - Add Color - How To

Hello All,

I know there is an option to turn on a color for required fields, but that makes it apply to every form I open.

I am specifically trying to outline mandatory fields in case entry that are needed for our sales process.

Can I do this without having to write custom code?

Thanks in advance for any ideas or guidance.


I could make a personalization and change the border color on all the required fields then save that as a customization or I could just click on each one of the fields in developer mode and change the border color.

You do not need a customization for this. Epicor comes with this option for forms. See below. You can check the required field box.


Vinay Kamboj

What I do is make a customization with a Row rule. So not only can I check if it is blank, I could also validate what they entered.

When I turn this option on it seems to be enabled for every form after that. I am looking for it to only outline required fields for a certain form- Case Entry.

I love the way this option works, I just wish that it was form specific.

Calvin, thank you for the suggestion. I would like to be able to highlight where on the form that the info needs to be put in. For example, in order entry it always starts at the summary screen. I know that there are required fields on the header and detail so I wish the row rule could do like @Vinaykamboj mentioned and highlight the tabs as well.

I don’t recall for certain, but if the row rule allows for a custom action, then you could change the text of the tabs requiring input to have an exclamation mark. Or even change the style of the tab like the builtin function does.

Also, when you say “required” are you refering to the fields that Epicor requires (like Ship Via on a PO), or the fields your company has determined as being required (like how my company requires the Prod Group to be selected on Order Entry).

Both types of fields Calvin. I am using extended properties to control the ones we require.

I will have a look to see how I can change the style of a tab. I couldn’t find that property in developer mode. I will hunt around on here to see if anyone has done it.

It does highlight the tabs also.

Vinay Kamboj

Yes, I like that.

What I don’t like is that this happens on every form if you turn that setting on. This is a new module for us so we would like to highlight the relevant fields. Every other form as been used for the past 5 years so it isn’t necessary. Rest assured @Vinaykamboj , I intend to run the “required” option setting by the team.

So - yes I am " Necroposting". I am NOT a programmer… by choice (my brain can not hold all this) So I program Only out of necessity, when I am not working with a programmer. Right now I am working with a client that is running 2021.1.10

I am trying to highlight the border of EpiTextBoxes using the properties in Customization. They are NOT displaying the color. I have removed the AppStyling and I can see a border, but no coloring.

So then,
I tried to use some code that was in an older post (older than this one). @Chris_Conn you may recognize this…

EpiTextBox textBox = (EpiTextBox)csm.GetNativeControlReference(“blahblah-blah-guid-blah-blahblahblah”);

textBox.BorderColor = Colors.Purple;

This is the error I get and I have no clue where or how to find out which reference I am missing.

" Error: CS1061 - line 389 (1272) - ‘Ice.Lib.Framework.EpiTextBox’ does not contain a definition for ‘BorderColor’ and no extension method ‘BorderColor’ accepting a first argument of type ‘Ice.Lib.Framework.EpiTextBox’ could be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 389 (1272) - The name ‘Colors’ does not exist in the current context"

THANK YOU in advance for any help offered.

1 Like

@Marykay_Kowalski1 looking at this post they have Apperance.BorderColor


Add using System.Drawing; or use the color fully referenced

textBox.Appearance.BorderColor = System.Drawing.Color.Purple;


@gpayne Thank you! Your assistance has gotten the property to change - but it is still not displaying the color on the screen?? I have enclosed an image of the property value (changed) and the form. I did set the AppStyling to false and then changed it to true. It has no effect on the textbox displaying the set color. Any ideas?

Below is my code:

public class Script
// Add Custom Module Level Variables Here **
EpiTextBox textBox;

public void InitializeCustomCode()
	// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
	// Begin Wizard Added Variable Initialization
	textBox = (EpiTextBox)csm.GetNativeControlReference("cb451093-9c1a-4d49-9a0b-baceeb8e989b");  //POtextBox control handle

private void QuoteForm_Load(object sender, EventArgs args)
 textBox.Appearance.BorderColor = Color.Blue;


@Marykay_Kowalski1 Sorry, No clue. I had not done a border color before last night. I would try turning off required fields to see if that is causing an issue.