Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Information message

Former Member
0 Kudos

Hi all,

I have 3 radiobutton, according to the radiobutton I have to filled the 3 input fileds.

if i select the 1 first radiobutton , the 1 first input filed filled ..respectivly for remaning . This is is happening correctly.

my requirement if the user miss the filled the input field, we need to popup the messge 'Enter the first field value" like this for remaning fileds also.

how can i do that.

regards,

Ajay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ajay,

Do like this..

 if Radio1 = 'X' and textfield1 is initial.
  message 'Enter the first field value' type 'E'.
 elseif Radio2 = 'X' and textfield2 is initial.
  message 'Enter the second field value' type 'E'.
 elseif Radio3 = 'X' and textfield3 is initial.
  message 'Enter the third field value' type 'E'.
 else.
  ........ do nothing
 endif.

<b>Reward for helpful answers</b>

Satish

4 REPLIES 4

Former Member
0 Kudos

Hi,

Simple, just make the input field mandatory.

regards,

Sarvesh

Former Member
0 Kudos

Hi,

declare them as mandatory...then you will get the message.....

or u can check:

if radiobutton1_field is not initial.

message 'Enter the first field value ' type 'I'.

endif.

similarly for all radiobuttons.

<b>reward points if useful.</b>

regards,

Vinod Samuel.

Former Member
0 Kudos

Hi Ajay,

Check if your input field is not initial.

IF R1 = 'X'.

IF NOT <INPUT FIELD ONE> IS INITIAL.

MESSAGE 'Enter Value in Field One' type 'I'.

ENDIF.

ELSEIF R2 = 'X'.

IF NOT <INPUT FIELD TWO> IS INITIAL.

MESSAGE 'Enter Value in Field Two' type 'I'.

ENDIF.

ELSEIF R3 = 'x'.

IF NOT <INPUT FIELD THREE> IS INITIAL.

MESSAGE 'Enter Value in Field Three' type 'I'.

ENDIF.

ENDIF.

Ali

Message was edited by:

Quadri

Former Member
0 Kudos

Hi Ajay,

Do like this..

 if Radio1 = 'X' and textfield1 is initial.
  message 'Enter the first field value' type 'E'.
 elseif Radio2 = 'X' and textfield2 is initial.
  message 'Enter the second field value' type 'E'.
 elseif Radio3 = 'X' and textfield3 is initial.
  message 'Enter the third field value' type 'E'.
 else.
  ........ do nothing
 endif.

<b>Reward for helpful answers</b>

Satish