KirstyB Posted November 10, 2004 Posted November 10, 2004 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
CobaltSky Posted November 10, 2004 Posted November 10, 2004 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.
Recommended Posts
This topic is 7581 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 accountSign in
Already have an account? Sign in here.
Sign In Now