Jump to content

Dave Carmean

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dave Carmean

  • Rank
    Filemaker Server/ PHP API

Profile Information

  • Gender
    Not Telling
  • Location
    Vancouver

Contact Methods

  • Website URL
    http://www.sfu.ca/biology2/staff/carmean/
  1. If you are using booleans, e.g. Yes/No, since 1. Code is processed sequentially 2. Only the last 'checked' answer is used. Therefore put the 'non' answer first but hide it and leave it always checked. The positive answer comes second. <?php $fieldName = 'Privacy_Agreement';?> <?php $fieldValue = $record->getField($fieldName, 0) ; ?> <input type='hidden' name='<?php echo (getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'number')) ;?>' value='No' checked> <input type='checkbox' name='<?php echo (getFieldFormName($fieldName, 0, $r
  2. So simple that I completely missed the possibility. That is very, very convenient. I appreciate your help. Thank you for your time!
  3. I would like to edit a value list via a web interface- I have done this using a field ("Use values from field"), but that [I incorrectly assumed, see doughemi's suggestion below!] requires adding/editing a record for each value, while (if possible) the textarea box would allow the editing of the whole value list at once. Genx showed how to display a value list... $layout = $fm->getLayout('my_template'); $list = array_map("htmlentities",(array)$layout->getValueList('my_list')); I am hoping there is some easy way to send back an edited valuelist… We are using Filemaker Server
  4. My question may be as simple as how do I enter a date in DD/MM/YYYY format using a radio button? (If you can answer that, ignore the rest). I have a simple form for online Timesheets that we have been using for years (thousands have been entered without almost no work on my part since I set it up). Now we want to change the date format from MM/DD/YYYY to DD/YY/YYYY. Everything works except where I auto-enter the "Period Ending" Date. An assistant updates the global value for the "Period Ending" Date in FileMaker every two weeks- this date needs to be auto-entered in new Timesheets (but m
  5. Thank you Xochi! I followed the instructions in your link (apple stackexchange) for our Filemaker 11 server on mountain lion (client, not server). No problems. Update- I install the bash fix Friday night but did not restart the server until Monday morning. The bash fix does not require restarting the system, but the system logs will include some errors as the signature of the new bash does not correspond to the record until after a restart. And I always need to restart the web server [sudo apachectl graceful] after restarting the system.
  6. I have a single form that asks a person to answer questions (name etc) and upload a file to the server using <input name="PDFname" type="file" /> Works Beautifully- when the information and file are uploaded successfully the user gets the message echo ($file['name']. ' was successfully uploaded to the server' I don't know how to get the name of the uploaded file into Filemaker. Any suggestions are welcome! I think it should be simple. From my reading I think I have to join the information $_FILES['file']['name'] from the $_FILES array with this // get the
  7. It actually works on the website to put <br /> and &nbsp; in the value list: Lecturer<br /> Instructor - BISC101 <br /> Instructor - BISC432 <br /> Instructor&nbsp;-&nbsp;BISC654 However, when the form is submitted, '<br />' is visible to people viewing the field with a Filemaker client (nbsp; is not, at least not visibly!). Any suggestions for cleaning up the submission, or a different coding character for a hard return- I tried other 'return' characters... Lecturer &#12; Instructor - BISC101&#10 Instructor - BISC432
  8. On a web entry form with radio buttons using a valuelist, some of the choices have the radio button on the far right of the line above the wording of the choice, making that choice confusing. Is there a way to force each value to have a new line? (Or enforce orphan protection, so at least each choice has a couple of words next to the radio button?) Here is an example where there is a button for BISC650 next to BISC432 text: Here is the current code (Valuelist and field are both called 'position'): <?php $fieldValue = $record->getField('position', 0) ; ?&g
  9. This may be clunky, but it appears to work. Suggestions for improving it are welcome. <?php if (nl2br( $record->getField('Instructor website', 0) ) != "" ) { echo " href="" . nl2br( $record->getField('Instructor website', 0) ) . "">" . nl2br( $record->getField('Instructor', 0) ) . "" ; } elseif (nl2br( $record->getField('Instructor email', 0) ) == "" ) { echo nl2br( $record->getField('Instructor', 0) ) ; } else {
  10. Filemaker PHP site assistant generates recordlist.php ... <?php echo getSortRecordsLink('Name', 'Name')?> <?php echo getSortRecordsLink('Website', 'Website')?> <?php echo getSortRecordsLink('Email', 'Email')?> I want a single column with the name linked to the website, but if no website exists, linked to the email, and if no email, just the name. The old CDML code was- [FMP-IF: field:Website.cn.http] [FMP-FIELD: Name][FMP-ELSE][FMP-IF: field:Email.cn.@] [FMP-FIELD: Name][FMP-ELSE][FMP-FIELD: Name][/FMP-IF][/FMP-IF] Does anyone have suggestions or a sam
  11. I got the message 'invalid user name or password. Please try again.' when trying to authenticate. While the user had '[Full Access]' listed under privilege set, it turned out I had not checked off 'Access via PHP Web Publishing' in the extended privileges. Check that area to see if it fixes the authentication problem.
  12. I got the message 'invalid user name or password. Please try again.' when trying to authenticate via website I had set up- while the user had '[Full Access]' as listed under privilege set, it turned out I had not checked off 'Access via PHP Web Publishing' in the extended privileges. Security is good, but the error message could be improved!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.