Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

open form with according layout

Avatar

Avatar
Validate 10
Level 2
eugzl
Level 2

Likes

5 likes

Total Posts

171 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 2
eugzl
Level 2

Likes

5 likes

Total Posts

171 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
eugzl
Level 2

04-04-2018

Hi All.

In my form when user fill the form the textField get some value. Then user save the form. Then form saved and closed. Based on value of textField I would like to open form with according layout.

What event I must to use if I have some conditions:

if textField1==3 then I would like to show only subForm1 when form is open;

if textField1==2 then I would like to show only subForm2 and subForm3 when form is open.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

04-04-2018

Simplest way is with an if statement, switch would work also.

In the Form's docReady event [form1::docReady - (JavaScript, client)] put this:


if(textField1.rawValue == 3) //if the textfield is 3, show subForm1
{
subForm1.presence = "visible";
}

else if(textField1.rawValue == 2) //if the textfield is 2, show subForm2
{
subForm2.presence = "visible";
}

else //if the textfield is anything else, do nothing.
{}

Answers (0)