Is there a way to get a list of checkboxes to display on WebDirect, like it does in FMP client? In webDirect, the carriage returns between value list items seems to be ignored.
you can hack the CSS:
DevCon WebDirect Series 2 of 4: Printer-friendly CSS | MainSpring
I haven't found another easy way to do it. My blog post above has sample code for the CSS hack, note that it will affect all WebDirect files on your server.
Great article, Mike! too bad we have no control (no stylesheet over-ride) with Web Direct. I'm glad you cautioned to save all before attempting to make the changes!!
I'm on my way with this one. Adding the custom CSS fixed my checkboxes must messed up my radio buttons on the same layout. I'm not very good with CSS, but I'm guessing the solution is some way to specify a class and apply the custom CSS to that class rather than all checkboxes/radio buttons.
yeah, although from what I've seen so far, the FM updates do not overwrite custom CSS changes.
I don't recall, I wrote that article two years ago now. I DO recall that finding CSS classes are a colossal pain in the butt though. You basically need to drill down through all the HTML in a browser until you get to the designated checkbox.
The method I began to use was to assign a checkbox value of "TESTCHECK", and searching the source code for that.
WebDirect uses both dynamic and parent classes. The dynamic ones are specific to every object on the layout and may change, so don't use them. The parent classes are like the one I used in my custom CSS, although it may unfortunately be that checkbox and radio sets share the same parent class.
HTML Input Types
radio and checkbox are different selectors in CSS
This has to be something that drives many developers nuts, so let's hope we see something in a future version of Filemaker to address it. Re: Mike's comment, "The parent classes are like the one I used in my custom CSS, although it may unfortunately be that checkbox and radio sets share the same parent class." Yes, I think this is the case. I was able to app[ly your custom CSS successfully, but it affects both checkboxes and radio buttons. I'm looking at my layout to see if I can just alter my layout to adapt accordingly. THX to both you Mike and Beverly!
Nice to see you again, TC (long time since CDML days)! will you let us know what you decide to do?
WD is so much of the layout "as is". I know with IWP, the same was mostly true. I remember doing some work-arounds with checkboxes (and radio) input on the layouts to make them work better in IWP. usually something like making EACH VALUE a separate "list" and duplicating the field on the layout, assigning one of these separate "value lists" to it. That way each "checkbox" or "radio" could be aligned independently. IWP seemed to redraw better. I wonder if WD needs the same method? The total values in the actual field were the same as if there were only one field, so that didn't matter. I always felt like separate "fields" was more like HTML input where there is one "name" to the set, but each checkbox or radio was a separate "input" line of code.
Retrieving data ...