cancel
Showing results for 
Search instead for 
Did you mean: 

highlight the field which is blank

Former Member
0 Kudos

Hi Experts,

I have an interactive form i wda with three input fields. All the three fields are required fields. Is there any way to highlight the fields that is blank before submitting.

I need to highlight the field which is blank when i press the submit button.

Regards

Sarath

points are assured

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Write the below mentioned code at the exit event of the field:--

>Code>

if( this.rawValue == null)

{

BodyPage1.RequestDetails.ApprovedBy.border.edge.color.value = ( "125" ,"125","125");

}

Hope this helps..

Regards

Amita

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In the layout define the field as required , so if you don't filled them they will be higlight automaticaly when submitting.

regards

Former Member
0 Kudos

Hi

You can write following JavaScript on the click event of the button:

if ( this.parent.Fname.rawValue == null ){

this.parent.Fname.border.fill.color.value = ( "125" ,"125","125");

}

Hope this helps,

Amit

Former Member
0 Kudos

Thanks Amith,

i just want the text field inside a red rectange.. current code is filling the textfield with red