tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Is it posible for someont to click a radio button (ex. #4 of 5) and it displays 4 stars instead of the radip button?? It should work like http://cdn.nflximg.com/us/pages/widget/stars_2_30.gif Thanks TMAS
tmas73 Posted March 9, 2005 Posted March 9, 2005 Is it posible for someont to click a radio button (ex. #4 of 5) and it displays 4 stars instead of the radip button?? It should work like http://cdn.nflximg.com/us/pages/widget/stars_2_30.gif Thanks TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Is it posible for someont to click a radio button (ex. #4 of 5) and it displays 4 stars instead of the radip button?? It should work like http://cdn.nflximg.com/us/pages/widget/stars_2_30.gif Thanks TMAS
andygaunt Posted March 9, 2005 Posted March 9, 2005 not instead of, but you could create a calc container field that looks at the value in the radio button field and pulls a graphic for that qty of stars
andygaunt Posted March 9, 2005 Posted March 9, 2005 not instead of, but you could create a calc container field that looks at the value in the radio button field and pulls a graphic for that qty of stars
andygaunt Posted March 9, 2005 Posted March 9, 2005 not instead of, but you could create a calc container field that looks at the value in the radio button field and pulls a graphic for that qty of stars
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Do you have a example?? I'm a beginner in FM! Thanks TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Do you have a example?? I'm a beginner in FM! Thanks TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Do you have a example?? I'm a beginner in FM! Thanks TMAS
BrentHedden Posted March 9, 2005 Posted March 9, 2005 You could create the calced fields like Andy suggested, and lay an "invisible" button over each one. The button will trigger a script, and then the script will do what it needs to do. So, you'll have 5 calced fields, five "invisible" buttons, and five scripts. Well, only one script if you use script parameters. This way you won't even need to worry about Radio Buttons at all.
BrentHedden Posted March 9, 2005 Posted March 9, 2005 You could create the calced fields like Andy suggested, and lay an "invisible" button over each one. The button will trigger a script, and then the script will do what it needs to do. So, you'll have 5 calced fields, five "invisible" buttons, and five scripts. Well, only one script if you use script parameters. This way you won't even need to worry about Radio Buttons at all.
BrentHedden Posted March 9, 2005 Posted March 9, 2005 You could create the calced fields like Andy suggested, and lay an "invisible" button over each one. The button will trigger a script, and then the script will do what it needs to do. So, you'll have 5 calced fields, five "invisible" buttons, and five scripts. Well, only one script if you use script parameters. This way you won't even need to worry about Radio Buttons at all.
andygaunt Posted March 9, 2005 Posted March 9, 2005 ok, depends on your table structure. I will base this out of a single table occurence. If you have more, you amy want to dedicate a table to items such as graphics. Create a container field (lets call it Star_images) This needs to be a repeating field with 5 repetitions(set in the options under storage to 5. Also check the global storage option) Now, place your stars in these repetitions, with number 1 containing your 1 star graphic (that is the entire graphic by the way, including the stars not selected) up to the fifth repetition Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) HTH
andygaunt Posted March 9, 2005 Posted March 9, 2005 ok, depends on your table structure. I will base this out of a single table occurence. If you have more, you amy want to dedicate a table to items such as graphics. Create a container field (lets call it Star_images) This needs to be a repeating field with 5 repetitions(set in the options under storage to 5. Also check the global storage option) Now, place your stars in these repetitions, with number 1 containing your 1 star graphic (that is the entire graphic by the way, including the stars not selected) up to the fifth repetition Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) HTH
andygaunt Posted March 9, 2005 Posted March 9, 2005 ok, depends on your table structure. I will base this out of a single table occurence. If you have more, you amy want to dedicate a table to items such as graphics. Create a container field (lets call it Star_images) This needs to be a repeating field with 5 repetitions(set in the options under storage to 5. Also check the global storage option) Now, place your stars in these repetitions, with number 1 containing your 1 star graphic (that is the entire graphic by the way, including the stars not selected) up to the fifth repetition Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) HTH
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry, I got lost @ Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) I attached the file! Thanks for your help!
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry, I got lost @ Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) I attached the file! Thanks for your help!
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry, I got lost @ Now, your calculation to display the correct image based on the radio button This is a calculation field with a result of container GetRepetition ( Star_images; Your radio button field here ) I attached the file! Thanks for your help! Starz.fp7.zip
mr_vodka Posted March 9, 2005 Posted March 9, 2005 Ooops late post... sorry Andy. ------------------------------------------------------------------- Create a repeating container field. The repeating field show be six containers. 0-5 stars. Then create 6 buttons. You can pass a parameter via each button to one generic script. I have made a mock up for you. Take a look at the code and how the parameter is passed. Those grey button are the same buttons taht are under the stars calculation image field; however being invisible. Good luck.
mr_vodka Posted March 9, 2005 Posted March 9, 2005 Ooops late post... sorry Andy. ------------------------------------------------------------------- Create a repeating container field. The repeating field show be six containers. 0-5 stars. Then create 6 buttons. You can pass a parameter via each button to one generic script. I have made a mock up for you. Take a look at the code and how the parameter is passed. Those grey button are the same buttons taht are under the stars calculation image field; however being invisible. Good luck.
mr_vodka Posted March 9, 2005 Posted March 9, 2005 Ooops late post... sorry Andy. ------------------------------------------------------------------- Create a repeating container field. The repeating field show be six containers. 0-5 stars. Then create 6 buttons. You can pass a parameter via each button to one generic script. I have made a mock up for you. Take a look at the code and how the parameter is passed. Those grey button are the same buttons taht are under the stars calculation image field; however being invisible. Good luck. stars.zip
andygaunt Posted March 9, 2005 Posted March 9, 2005 There you go - John's works too. Hey, it is all good. Same principle, just with a button to set the previous radio field to a value. Just don't get confused by the current number stars field being 1 greater than the actual count (this is due to having a zero star setting as repetition 1. Well, just for the fun, here is the version I was working on. Same result, just no scripts Other than that, good job. Beat me to uploading my working version!!!!
andygaunt Posted March 9, 2005 Posted March 9, 2005 There you go - John's works too. Hey, it is all good. Same principle, just with a button to set the previous radio field to a value. Just don't get confused by the current number stars field being 1 greater than the actual count (this is due to having a zero star setting as repetition 1. Well, just for the fun, here is the version I was working on. Same result, just no scripts Other than that, good job. Beat me to uploading my working version!!!!
andygaunt Posted March 9, 2005 Posted March 9, 2005 There you go - John's works too. Hey, it is all good. Same principle, just with a button to set the previous radio field to a value. Just don't get confused by the current number stars field being 1 greater than the actual count (this is due to having a zero star setting as repetition 1. Well, just for the fun, here is the version I was working on. Same result, just no scripts Other than that, good job. Beat me to uploading my working version!!!! Starz.zip
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Thanks for all your help. Great comunity! TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Thanks for all your help. Great comunity! TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Thanks for all your help. Great comunity! TMAS
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry me again! I just tried to re-create the solution into a new one and I have to say I do not know where you get the Yellow stars and the gray one in the cstars field. I copied the gray stars into the container field but now I'm stuck! Sorry!
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry me again! I just tried to re-create the solution into a new one and I have to say I do not know where you get the Yellow stars and the gray one in the cstars field. I copied the gray stars into the container field but now I'm stuck! Sorry!
tmas73 Posted March 9, 2005 Author Posted March 9, 2005 Sorry me again! I just tried to re-create the solution into a new one and I have to say I do not know where you get the Yellow stars and the gray one in the cstars field. I copied the gray stars into the container field but now I'm stuck! Sorry!
andygaunt Posted March 9, 2005 Posted March 9, 2005 Hi, you need to copy the full set of stars. So, repetition 1 is 5 gray starys. repetition 2 is 1 yellow with 4 gray. and so on. You could just copy and paste from the container fields on the Working layout into your container fields.
andygaunt Posted March 9, 2005 Posted March 9, 2005 Hi, you need to copy the full set of stars. So, repetition 1 is 5 gray starys. repetition 2 is 1 yellow with 4 gray. and so on. You could just copy and paste from the container fields on the Working layout into your container fields.
andygaunt Posted March 9, 2005 Posted March 9, 2005 Hi, you need to copy the full set of stars. So, repetition 1 is 5 gray starys. repetition 2 is 1 yellow with 4 gray. and so on. You could just copy and paste from the container fields on the Working layout into your container fields.
tmas73 Posted March 10, 2005 Author Posted March 10, 2005 Haaa I see! Thats cool! Ok it works, thanks so much!
tmas73 Posted March 10, 2005 Author Posted March 10, 2005 Haaa I see! Thats cool! Ok it works, thanks so much!
Recommended Posts
This topic is 7187 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