How to hide a field on click

Discussion forum about all things Team Developer 5.x and 6.x
Headcold
United States of America
Posts: 13
Joined: 05 Mar 2018, 16:01
Location: USA

How to hide a field on click

Post by Headcold » 05 Nov 2019, 18:03

What is the best way to hide a field on click? Lets say I have radio button and clicking it turns off a field or two. What would be the best way to do this? If someone could point me in the right direction of what to look up in the help section.
Thanks

User avatar
Charlie
Canada
Posts: 315
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Re: How to hide a field on click

Post by Charlie » 05 Nov 2019, 18:41

G'day,

I hope this helps:

Code: Select all

Form Window: frm1
	Contents
		Radio Button: rb1
			Message Actions
				On SAM_Click
					Call SetAsPerRadioButtons()
		Radio Button: rb2
			Message Actions
				On SAM_Click
					Call SetAsPerRadioButtons()
		Data Field: df1
	Functions
		Function: SetAsPerRadioButtons
			Actions
				If rb1
					Call SalHideWindow( df1 )
				Else If rb2
					Call SalShowWindow( df1 )
	Window Parameters
	Window Variables
	Message Actions
		On SAM_CreateComplete
			Call SetAsPerRadioButtons()
A little trick to help direct folk from old Gupta forum to this one: Link to post

Headcold
United States of America
Posts: 13
Joined: 05 Mar 2018, 16:01
Location: USA

Re: How to hide a field on click

Post by Headcold » 06 Nov 2019, 10:29

Thanks for the response

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests