Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Place cursor in textbox and highlight with a color
SLX_Novice
Posts: 246
 
Place cursor in textbox and highlight with a colorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 11 3:49 PM
fiogf49gjkf0d

Hi all.


I have a custom form in SLX LAN v7.2.1 that the end user enters data in two fields: field1 and field2


I have an OnClick event on the "OK" button that checks to see if one of the 2 fields is missing data. Currently, if one of the fields is blank it pops up a message box telling them the field is blank but when the user clicks the OK on the message box it closes the entire form. Instead I would like for the cursor to be placed in the blank field and the text field be highlighted in a color (i.e. pink).


Any suggestions?


Thank you in advance!

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Place cursor in textbox and highlight with a colorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 11 2:33 AM
fiogf49gjkf0d

There is an event called AXFomValidate (right click a blank area on form, go to events, choose this one and double-click it. This creates the stub.


In here. Check your conditions. If it fails set AXFormValidate = False - this prevents the form closing. Use myControlName.SetFocus to move back to that control. Use .Colour = adPink (that's not real, you can find those in the color props) to set it to the colour (spelt correctly!) to the one you want.

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Place cursor in textbox and highlight with a colorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 May 11 7:33 AM
fiogf49gjkf0d

Thanks worked great!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/5/2025 1:09:10 PM