Forum

You are not logged in. Please note that you need to log in before posting.

Dear friends! Please note that hitAppoint will be on holidays till June 12, 2011 with a limited online access. We apologize for delayed replies. Every request will be promptly resolved on return.

#1 2010-07-07 10:50:41

rgc
New member
Registered: 2010-05-19
Posts: 8

Custom Form fields still missing

The latest release still does not display the custom form fields when you browse the appointments. These fields should display in column format, similar to when you browse the users.  Since my client uses this program to schedule appointments at the clients location, this feature is extremely important to them, so that their providers know where their appointments are at by export the browse appointments screen in an excel format. Please inform how to correct this issue. Thank you.

Offline

 

#2 2010-07-09 07:06:11

algis
Administrator
Registered: 2006-01-09
Posts: 1724
Website

Re: Custom Form fields still missing

hello,
I'm sorry I'm not sure how to correctly implement this feature because in general the custom fields may differ per service. So for example one service has "Custom Field 1" while another service doesn't, but we show appointments for both services in one list.

Offline

 

#3 2010-07-13 10:12:11

HowToMove
Member
Registered: 2010-05-01
Posts: 118
Website

Re: Custom Form fields still missing

algis wrote:

I'm sorry I'm not sure how to correctly implement this feature because in general the custom fields may differ per service.

We'd like this feature also, and have a suggestion for how to make it admin-friendly:

On the browsing screen, I understand the problem of making lots more columns. How about instead adding a different-color ROW to each appointment for each custom field? If an appointment has no custom fields, or if the field was not filled in when the appointment was made, the appointment browsing page would look as it does now. If one or more non-default custom fields are part of an appointment, then 2-column rows would be added to that appointment (name=value, with value spanning all but one of the current display table columns).

When exporting, the number of columns isn't important. Just make a column for each custom field, leaving that column blank for appointments that don't use it.

Offline

 

#4 2010-07-21 19:22:37

HowToMove
Member
Registered: 2010-05-01
Posts: 118
Website

Re: Custom Form fields still missing

algis wrote:

I'm sorry I'm not sure how to correctly implement this feature

Having no solution for quite a while, I just completed a hack. If anyone else out there is doing hacks, please post them so we can all benefit!

The patches below will display the custom form field named "comment" for both customers and admin. It's not pretty coding, but it's short and it works.

put this before the last </div> in the file core/panels/customer/appointments/browse/index.php
to have the comment show up under the cancel/reschedule links:

Code:

<?php $appDetails = $a->getByArray(); ?>
<?php if($appDetails['comment']) : ?>
 <hr><b>Notes:</b> <?php echo $appDetails['comment']; ?>
<?php endif; ?>

put this before the last </tr> in the file core/panels/admin/appointments/browse/index.php
to have the comment show up as an additional line under all the current fields:

Code:

<?php $appDetails = $a->getByArray(); ?>
<?php if($appDetails['comment']) : ?>
<tr class="<?php echo ($count % 2) ? 'even' : 'odd'; ?>">
 <td>&nbsp;<td style="padding: 0;" class="<?php echo $class; ?>">&nbsp;</td>
 <td colspan="9"><b>Notes:</b> <?php echo $appDetails['comment']; ?>
</tr>
<?php endif; ?>

Last edited by HowToMove (2010-07-21 19:23:09)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson