proton Posted November 8, 2001 Posted November 8, 2001 Hi again ya'll, I have a form for persons to sign up as members. One of the fields is Gender, which on the form is represented as radio buttons (i.e. Male, Female). The person signing up just selects which gender they are, fill out the rest of the form and submit it (which creates a new record in the filemaker database. Now here's the problem. I have a link whereby a member can edit their record. When they click on the link it brings up the edit form which displays their information so they can edit it. I want to show the gender radio buttons again, but I want it to already have their gender selected. How do I get it to show which one is selected? Hope this makes sense. Thanks in advance.
dspires Posted November 8, 2001 Posted November 8, 2001 [FMP-ValueList: gender] <input type="radio" name="gender" value="[FMP-ValueListItem]" [FMP-ValueListChecked]> [FMP-ValueListItem] [/FMP-ValueList]
proton Posted November 8, 2001 Author Posted November 8, 2001 quote: Originally posted by dspires: [FMP-ValueList: gender] <input type="radio" name="gender" value="[FMP-ValueListItem]" [FMP-ValueListChecked]> [FMP-ValueListItem] [/FMP-ValueList] dspires: Thanks a lot. You've been a great help.
scratchmalogicalwax Posted November 18, 2001 Posted November 18, 2001 I try to avoid using value lists on my web databases to keep them as slim and simple as possible. I use if statements to display either checked or unchecked radio buttons depending on the value in the field (with the default as none checked). This means much more HTML (especially when there are a few options!) so is probably not for most people......but it's the way I prefer to do it....
Anatoli Posted November 18, 2001 Posted November 18, 2001 RE: This means much more HTML (especially when there are a few options!) Just in code and a bit of processing time. But it is not send to browser
proton Posted November 20, 2001 Author Posted November 20, 2001 quote: Originally posted by Anatoli: RE: This means much more HTML (especially when there are a few options!) Just in code and a bit of processing time. But it is not send to browser There's also another problem with using the FM generated value lists. You have to have an FM backed "lead-in" page to prepare it to generate the value lists (if you all understand my meaning). In other words there has to be a page that refers to fm (a form page) previous to the page with the value list. That is why I mostly try to avoid using fm generated value list in HTML, but if I am editing a record (which I am in this case) I don't really have much choice I think. I have a menu in a frame, and the links in the menu take you to the different pages (New Record, Edit Record, Find Record and so on). The trick is this menu page is not an FM powered page. It just contains the links which load in another frame. Therefore, even though I put in the code for the radio buttons, when I click on the edit member record link, it does not display the radio buttons...sigh. Complications, complications.
Recommended Posts
This topic is 8501 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