Fields Management tab

  • lotus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 5 months ago #12431 by lotus
Fields Management tab was created by lotus
How exactly do I use the Fields Management area? I've created custom fields, but I don't see how I can add them to the donation form?

I also don't see this covered in the instructions anywhere.

Please explain how to add the custom fields to the donation forms. I would like to only add them to forms associated with a specific campaign. Also, how do I extract the information from these custom forms so they will appear in the admin email?

Please advise.

Please Log in or Create an account to join the conversation.

  • lotus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 5 months ago #12434 by lotus
Replied by lotus on topic Re: Fields Management tab
Now that I've set up some fields, I see they are automatically being added to the bottom of all the forms for all the campaigns.

This is not what custom fields should be doing. I should be able to assign those custom fields to a campaign of my choosing. I also need to able to position them in the order I want, not have them all show up at the bottom of the form.

Please tell me how to assign custom fields to specific campaigns.

And, please tell me how to make them appear in the order I want.


If your component does not do this, and you can't change it, then this component will not be useful to me at all.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #12449 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fields Management tab
Hi

Please tell me how to assign custom fields to specific campaigns


=> Go to Joom Donation -> Configuration, set Custom fields based on campaign config option to Yes. After that, edit the custom field again and you will be able to assign it to the campaigns .

And, please tell me how to make them appear in the order I want


=> Go to Joom Donation -> Custom fields, click on the header of order column and you will be able to change order of these custom fields. However, by it design, the custom fields are always located at bottom of the form (after basic field like First Name, Last Name...), so you cannot move a custom field to the top of the form (above First Name, Last Name... fields for example) .

Hope my answers are clear to you !

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #15185 by lisaundgiorgio
Replied by lisaundgiorgio on topic Re: Fields Management tab
Is there still no chance to get some custom fields to the top of the form? I do have firstname and lastname on top but i do need a title field there to.
Maybe a core hack could help? It makes no sense to have the title field after the main fields and away from the names...

any help is appreciated

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #15187 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fields Management tab
Yes. This will require a core hack. You can follow the steps below :

1. Open the file components/com_jdonation/views/donation/tmpl/default.php

2. Find the code below (which display custom fields) :
Code:
if ($this->customField) { echo $this->fields ; }

3. Move it to the position you want .

Hope this help

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #15189 by lisaundgiorgio
Replied by lisaundgiorgio on topic Re: Fields Management tab
Oh, looks like i'm in the wrong forum. My problem was related to event booking. But it works there the same way. Found and moved it, but one thing (and maybe that won't be that easy) is still on my wish list.

I now have everything on top, is there a possibility to have some at the top and some at the bottom. What does "$this->fields" contain? Can i sort by its id to display some at top and some at bottom based on the id?

Maybe this is to complex, but it would be a great help to me.

In my case i do have the field "eb_title" which should be on top, and another field "eb_exp" which should be on bottom. Any possibility to reach that?

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #15190 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fields Management tab
You can use the code below (for Event Booking) to display output of a custom field :
Code:
<?php echo $this->fieldsOutput['field_name'] ?>

For example, if you want to display title field , you can use the code below :
Code:
<tr> <td><?php echo JText::_('Title'); ?></td> <td><?php echo $this->fieldsOutput['eb_title'] ; ?></td> </tr>

Same for other fields. If you use the above code, make sure you remove the code below (to avoid one field displayed on different place)
Code:
if ($this->customField) { echo $this->fields ; }

That's all I can help . You will need to figure the remaining yourself .

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #15222 by lisaundgiorgio
Replied by lisaundgiorgio on topic Re: Fields Management tab
Wow, thats great. Thank you. That completely solved my problems!

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #16891 by Klaus
Replied by Klaus on topic Re: Fields Management tab
Hi Admin,

is also possible for Joomdonation?

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #16892 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fields Management tab
Hi Klaus

Unfortunately, it is not possible .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt