|
|||||||
![]() |
Forum Index > glFusion > glFusion Add-on, Plugin Support |
|
|
Forms 0.1.1
|
|||
| First | Previous | 1 2 3 | Next | Last | | | Printable Version |
|
Rocky | ||||||||
|
Lee, thanks for releasing Forms Plugin Beta 2. |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
|
Calculated fields only show up in the results table since they haven't been calculated before the form is submitted. They'll also show up on the printable form that the admin can see. What you probably want is to create a printable copy of the form for the submitter's records type of thing. I've been thinking of how to add that while ensuring access for only anonymous users. Probably a simple expiration so the form won't be shown more than 5 minutes after submitting might work. Of course, the same calculations can be done after downloading the data, but this way the result can be shown in the results via an autotag. Maybe not too useful, but an interesting exercise to get working. |
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Thanks, Lee. |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
|
For the form, you'd need several fields You could do something like this: |
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Thanks Lee, |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
|
It's fixed for the next release. In the meantime you just need to select the field position in the dropdown list. Select "No Change" to have it stay put. |
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Since you are preparing to release the next version, please consider adding the following tweaks I have added to the codes to improve user friendliness. PHP Formatted Code $header_arr = array( array('text' => 'ID', 'field' => 'id', 'sort' => true), // Sam added array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false), array('text' => $LANG_ADMIN['copy'], 'field' => 'copy', 'sort' => false), array('text' => $LANG_FORMS['submissions'], 'field' => 'submissions', 'sort' => false), array('text' => $LANG_FORMS['name'], 'field' => 'name', 'sort' => true), array('text' => $LANG_FORMS['enabled'], 'field' => 'enabled', 'sort' => true), array('text' => 'Action', 'field' => 'action', 'sort' => true), array('text' => $LANG_ADMIN['delete'], 'field' => 'delete', 'sort' => false), );
PHP Formatted Code case 'id': $retval = $A['id']; // Sam edited break;
PHP Formatted Code case 'preview': $content .= FRM_adminMenu($view, 'hdr_form_preview'); if ($frm_id > 0) { USES_forms_class_form(); $F = new frmForm($frm_id); $T = new Template($_CONF['path'] . '/plugins/forms/templates/'); $T->set_file('header', 'preview_header.thtml'); $T->set_var('frm_name', $F->name); $T->set_var('frm_id', $frm_id); // Sam added $T->set_var('frm_link', FRM_PI_URL . '/index.php?frm_id=' . $frm_id); // Sam added $T->parse('output', 'header'); $content .= $T->finish($T->get_var('output')); $content .= $F->Render('preview'); } break;
PHP Formatted Code <h2>{$LANG_FORMS['preview']}: {frm_name} <br /></h2> User URL: <a href="{frm_link}">{frm_link}</a>
PHP Formatted Code foreach ($values as $id=>$value) { $sel = $this->value == $value ? 'checked="checked"' : ''; $fld .= "<input $class type=\"radio\" name=\"{$this->name}\" id=\"{$this->name}\" value=\"$value\" $sel $readonly>$value\n"; // Sam deleted space
|
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Another bug, PHP Formatted Code <td style="float:right; vertical-align:top; padding-top:3px;"
|
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
Quote by: RockyAnother bug,
PHP Formatted Code <td style="float:right; vertical-align:top; padding-top:3px;"
|
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Hi Lee, |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
|
Thanks for the additions, I've added them. One thing- try taking out the "float:right" in the table cell. With that I was able to see the field squeezing into the left side. |
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Merry Christmas Lee, |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
lgarner | ||||||||
|
Good idea. I'll add the captcha as an option (off, on, on for anonymous only). |
![]() Admin Group Comfort Level:: +51 ![]() ![]()
Registered: 06/10/08 |
||||||||
|
|||||||||
|
Manny | ||||||||
|
Yeah, The best gardens are made not by planting more flowers but by picking more weeds. |
![]() Regular Member Group Comfort Level:: +3 ![]() ![]()
Registered: 03/07/08 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Another feature might be helpful. |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
| First | Previous | 1 2 3 | Next | Last |
| All times are CDT. The time is now 03:21 am. |
|
|