Home » Developer & Programmer » Forms » Alerting user when changing field without content (6i)
Alerting user when changing field without content [message #538300] Thu, 05 January 2012 03:59 Go to next message
Tomcrzy
Messages: 101
Registered: December 2011
Location: Chennai,India
Senior Member

Hi everybody,

I had created a form, in that i having two fields for username and password.
The problem is i want to make the fields as fill must.
if the user leaving the username field without entering anything
trigger must raised. Otherwise if we are entering the data it should allow him to go for the next block without any raising of triggers.

can anyone help me to come out from this problem.
Re: Alerting user when changing field without content [message #538309 is a reply to message #538300] Thu, 05 January 2012 04:06 Go to previous messageGo to next message
cookiemonster
Messages: 13937
Registered: September 2008
Location: Rainy Manchester
Senior Member
Is there a problem with using the required property?
Re: Alerting user when changing field without content [message #538311 is a reply to message #538309] Thu, 05 January 2012 04:07 Go to previous messageGo to next message
muralikri
Messages: 638
Registered: August 2011
Location: chennai
Senior Member

Are you using D2K forms? In this case you have write Form level trigger ?
Re: Alerting user when changing field without content [message #538312 is a reply to message #538309] Thu, 05 January 2012 04:09 Go to previous messageGo to next message
Tomcrzy
Messages: 101
Registered: December 2011
Location: Chennai,India
Senior Member

Hi,

" Is there a problem with using the required property?"

i had tried with triggers to solve my problem.But it could'nt gave me the required result
do i want to write any code for this?
Re: Alerting user when changing field without content [message #538313 is a reply to message #538312] Thu, 05 January 2012 04:11 Go to previous messageGo to next message
Tomcrzy
Messages: 101
Registered: December 2011
Location: Chennai,India
Senior Member

here my form is very similiar with a login form.

i do not want the form blank and it must alerted them using some triggers
once he entered the data the trigger wont rise

what trigger i can use to come out from this issue.
Re: Alerting user when changing field without content [message #538314 is a reply to message #538313] Thu, 05 January 2012 04:19 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'm afraid you didn't understand what Cookiemonster told you - simply set item's REQUIRED property to YES.
Re: Alerting user when changing field without content [message #538318 is a reply to message #538314] Thu, 05 January 2012 04:24 Go to previous messageGo to next message
Tomcrzy
Messages: 101
Registered: December 2011
Location: Chennai,India
Senior Member

Silly on me, you told it correctly
instead of checking with the property i went for triggers

thanks a lot.
Re: Alerting user when changing field without content [message #538320 is a reply to message #538318] Thu, 05 January 2012 04:32 Go to previous messageGo to next message
Tomcrzy
Messages: 101
Registered: December 2011
Location: Chennai,India
Senior Member

Another requirement is i am tabbing out without entering the field if it is so the field border should be reddish in color
how can i achieve it.
Re: Alerting user when changing field without content [message #538335 is a reply to message #538320] Thu, 05 January 2012 05:46 Go to previous message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I wouldn't know. As far as I can tell, Forms itself can't do that - you might set item color red (or any other color) (with SET_ITEM_PROPERTY), but just its border ... no idea. Using Java, perhaps, but I really don't know anything about it.
Previous Topic: client_get_file_name error
Next Topic: Run form 10g debug.
Goto Forum:
  


Current Time: Sun Sep 08 07:30:35 CDT 2024