Questions about Payment Form extension

Script cannot recognize custom fields

  • anag2020
  • Topic Author
  • Visitor
  • Visitor
11 years 1 week ago #29430 by anag2020
Script cannot recognize custom fields was created by anag2020
This question perhaps has been asked many times but I could not locate one in the forum.
I have created a custom fee field, say PF_AUTHOR_FEE. I have another custom fee field PF_DISCOUNT. On the global form, I need to calculate the fee after the discount. I use the expression:
[PF_AUTHOR_FEE]*[PF_DISCOUNT].
The fee becomes zero. It appears that the custom fields are not recognized by the script. Only field I can use is [FIELD_VALUE] and constants.
Even on the PF_AUTHOR_FEE sheet, I cannot use [PF_DISCOUNT]. All fields are dropdown type with default values defined.
Also, how do I use the total form value (not field value) in script? Is there a term FORM_VALUE?
Thanks
AN

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

  • anag2020
  • Topic Author
  • Visitor
  • Visitor
11 years 1 week ago #29438 by anag2020
Replied by anag2020 on topic Re: Script cannot recognize custom fields
Never mind.
I guess I figured it out.
Thanks
AN

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 week ago #29466 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Script cannot recognize custom fields
Glad to hear that you figured it ! If you have other questions, please don't hesitate to ask !

Tuan

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

  • anag2020
  • Topic Author
  • Visitor
  • Visitor
11 years 1 week ago #29530 by anag2020
Replied by anag2020 on topic Re: Script cannot recognize custom fields
Hi,
I guess there is no variable [FORM_VALUE}. As of now I can manage using just the [FIELD_VALUE].
Follow-up questions:
1. How do I change the column widths? I need to make them wider.
2. How do I assign a different layout to a form/field? I don't see the option anywhere. The one on the field management is just a text box with no selections available?
Thanks

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 week ago #29534 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Script cannot recognize custom fields

1. How do I change the column widths? I need to make them wider.


=> Could you please send me the link to the page ? I will look at it and then guide you. It should be simple CSS modification.

2. How do I assign a different layout to a form/field? I don't see the option anywhere. The one on the field management is just a text box with no selections available?


=> I don't understand this question. I believe each custom field doesn't have different layouts to choose from. Maybe I mis-understood your requirement ?

Tuan

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

  • anag2020
  • Topic Author
  • Visitor
  • Visitor
11 years 6 days ago #29623 by anag2020
Replied by anag2020 on topic Re: Script cannot recognize custom fields
AN>>The Testpage link is :
www.ijacp.org/index.php/testpage

=> I don't understand this question. I believe each custom field doesn't have different layouts to choose from. Maybe I mis-understood your requirement ?

AN>>Regarding the layout, I understand that there are 4 different layouts available that one could choose from. How do I choose one of these layouts?

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

  • anag2020
  • Topic Author
  • Visitor
  • Visitor
11 years 5 days ago #29670 by anag2020
Replied by anag2020 on topic Re: Script cannot recognize custom fields
Any answer please!

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 3 days ago #29709 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Script cannot recognize custom fields
Hi

Please see my answer for your questions on your latest forum post. Sorry for lately response, it is holiday in our country these days.

Tuan

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

Moderators: Tuan Pham Ngoc