Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7318 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I currently have a field which appears like a radio button yes/no format and have been useing a script which when the field is yes then it goes to a new layout or if no it fills in the no and lets you go on to the next field. I want to be able to adapt this so if the field is yes it goes to one layout and if no it goes to another. However the way i have it set up the field is blank to start with and when you first click on it , it will go to no then you click a second time it goes to yes...the problem is that when it first goes to no it follows the script and takes you to te no layout, so you have to then go back amnd click a second time...not very neat.

the script I am current useing is

If (layout::field = "No")

Set field (layout:field; "Yes")

Go to Layout (new layout )

Else

Set Field (layout:field; "no")

go to Layout (new layout)

End If

Posted

Hello KirtsyB,

I guess there are a number of ways you could handle the situation you've described, but the simplest method might be to have two buttons side by side - one each for 'yes' and 'no'.

To add some finesse to this, you could set them up so the one that has been clicked lights up or whatever (using a calc and/or a container field etc).

Beyond that you could consider a range of other tricks, including making it possible to set the field directly to 'No' by holding the shift key down while clicking. Eg:

If [layout::field = "No" and not Mod(Get(ActiveModifierKeys); 2)]

Set Field [layout:field; "Yes"]

Go to Layout [layout1]

Else

Set Field [layout:field; "No"]

Go to Layout [layout2]

End If

Just throwing some ideas around here. The possibilities are almost endless, and it really depends on how you want it to work from the user's point of view. wink.gif

This topic is 7318 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.