Fill Check in Form With Input Restrictions

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

Hello everybody!
I’ve just started studying 1C thus I’m asking to help solving the simple problem:
There is a form with City, Area and Address fields. It is required to make Area inactive while the City is empty and make Address inactive while Area is empty. How to make a condition to force the user to input City prior Area and Area prior Address?

 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Nov 7, 2011
Company: IVT Laboratory

Hi!
For an example,

&AtClient
Procedure ManagementOfVisibility()
if ValueIsFilled(City) then
Items.Area.Enabled = true;
else
Items.Area.Enabled = false;
endif;
if ValueIsFilled(Area) then
Items.Address.Enabled = true;
else
Items.Address.Enabled = false;
endif;
EndProcedure

 
#3
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Nov 7, 2011
Company: IVT Laboratory

This example is valid for the managed forms.
Names of requisites and form fields are coincide.

 
#4
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

Thank you, Victor!
That worked for me!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.