Archive for May, 2009

SMERF GUI Form Designer

I’m toying with the idea of developing a GUI form designer for SMERF. Initially the GUI would load and create the YAML form definition files so there would be no need for someone to manually code the YAML files.

I would like to get your feedback to see if this is really needed and if I did create it that people would actually use it. I would also like to get ideas on what people would like to see, so if you have any ideas please let me know.

My current thinking is that I would use Adobe Flex for the GUI with RESTFul Rails as the backend all packages as a Rails engine.

Looking forward to hearing your thoughts.

Maintenance Release

The following changes have been made:

  • Bug fix: As per the bug reported by bgoodwin. SMERF now correctly handles numeric question codes. Previously if a numeric question code was used the validation functions did not work correctly as it was trying to access the responses hash extracted directly from the HTTP request using a numeric key when all the keys in the responses hash are strings. SMERF will now convert numeric codes to a string before saving to the DB.
  • When dealing with subquestions of type singlechoice it was not possible for the user to clear previously selected answers if they decided to select a non-subquestion answer. SMERF will now check to see if a non-subquestion answer was selected and if the subquestion type is singlechoice it will clear the answers of the subquestion. Additionally it will display an error message to inform the user of the ambiguous answer, here is an example error message: Are you aged over 40: Ambiguous answer provided for question ‘Specify your ages’, the answers to this question has been cleared. Thanks to Michael Franzl for reporting this problem.

You can download the changes from GitHub. Touch or change all your SMERF form definition files to force SMERF to re-process them.