October 15, 200916 yr this is a layout thing, but the problem i have is script related, so i think i'm right here. because i change field labels, i format my radio buttons with a generic 1,2,3 option. this is hidden, because i make the field very small, so you can't see the 1/2/3 text labels. when you now click an option, there's an ugly box around the buttons. therefore, i have disabled field entry and overlayed transparent buttons over the radio buttons. they are attached to individual scripts that change the field value accordingly. for a radio button with three options, that's already 3 scripts. considering there are many radio buttons in my solution, i already have a ton of scripts just for a simple function. is there a way to somehow parse field name, screen position, or something, into a single script that lets me change the radios without literals for each field and each option?
October 15, 200916 yr Using carefully the script parameters let you create only one script. Hint: each script parameter can have more than a value.
October 15, 200916 yr Author so you say it's possible... can you be a bit more specific? i wouldn't know where to start.
October 15, 200916 yr Start with: 1) give a name to a the object 2) put something like: 1 object1 into the space of the first script parameter. Make those steps for every radio button of the first field.
October 15, 200916 yr Author thanks, i think i get it. this means i can reduce the number of scripts to one per radio button set, but i will still need one script for each set, not one script for all radio button sets, correct? Edited October 15, 200916 yr by Guest
October 15, 200916 yr I think that you can reduce the number of scripts to ONE, whichever is the number of objects. radio_buttons.zip
October 15, 200916 yr Even better, create a table that holds the labels for the values of 1, 2, 3. Create a value list that displays the second values only. Use this value list in the radio buttons.
October 16, 200916 yr i dunno if i understand right but in this case i would use 3 value list vl1: 1 vl2: 2 vl3: 3 put on the layout 3 times the same field but show only the first radio button of each field (radio button type) each one with a different value list and that does the trick ** i think its what Vaughan was saying example: radiobtn.zip Edited October 16, 200916 yr by Guest
October 16, 200916 yr Author ah yes, i think that would do the trick and cut doen on the number of scripts. thank you for your template.
October 16, 200916 yr Author hi and thanks for your template. this works also and makes for a completely scriptless solution, but i thought that unframed radio buttons would look nicer. the frame around the radio buttons is something you always see in fm but nowhere else. that's whay i wanted to script around it. just a matter of style, not functionality, i suppose.
March 28, 201114 yr Author i'd like to pull out my old thread again, because now i want to do the same thing with check boxes. my radio button script ended up looking like this: GetValue ( Get ( ScriptParameter ) ; 1 ) on calling the script, i pass the name of the field and the value of the radio button like this: "fieldname¶value" i also have a nice script for a single check box: SetFieldByName | Get ( ScriptParameter ); Choose ( GetField ( Get ( ScriptParameter ) ) ; 1 )| but this breaks when you have two or more check boxes. i was hoping i can combine these two methods to create a neat check box. any ideas on how to do that? thanks, stefan
Create an account or sign in to comment