Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Custom Field Fee- Precentage not calculating

Custom Field Fee- Precentage not calculating 14 years 9 months ago #7011

  • dreamfox1
  • dreamfox1's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 33
  • Thank you received: 0
Hmm,

This is the best i can do for you.
Maybe not the neat and right way but it works
See screenshot

Btw users can not uncheck the radio so that is good
[attachment=0:1o822yuf]<!-- ia0 -->Untitled-1.jpg<!-- ia0 -->[/attachment:1o822yuf]
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

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

Custom Field Fee- Precentage not calculating 14 years 9 months ago #7015

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Both of you seem to have a little confusion about this...

If you have a yes or no option, you MUST use radio buttons. The whole purpose of a radio button in a web form is to allow the user to choose EITHER OR... no option to choose both. Checkboxes would allow you to choose both yes and no so that's not a good idea. That is just how checkboxes work :) If you want to use a checkbox, you'd need to give only one value, not a yes or no... just one box and make it required. If giving yes or no, use radio buttons.

If the field is setup properly, it will work.

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

Custom Field Fee- Precentage not calculating 14 years 9 months ago #7016

  • galen.bond
  • galen.bond's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
This is the issue. I have setup a Check Box and it will not calculate the percentage. Only adds the number as a dollar amount, not a calculated percentage, no matter what i do. I do not want to use a radio button as, like you said, this provides an options yet tax is not optional. I have attached a screen shot of my setup. Please let me know if im missing something here. I watched the video, and im sure i did everything right, but.....

Thanks,
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

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

Custom Field Fee- Precentage not calculating 14 years 9 months ago #7017

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
I will check into this but you could still use a radio button IF you give only one value AND you provided the "Selected Value". That way the radio button will automatically be selected... and if there is no other option, the user will not be able to UNselect that radio button. That may be the better route anyway as the checkbox can be unchecked.

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

Custom Field Fee- Precentage not calculating 14 years 9 months ago #7018

  • galen.bond
  • galen.bond's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Well, i tried using a radio button and no luck, the total is still not calculated as a percentage but rather adds the 7 as a dollar amount. However things are different in the front end... with a check box no extra fee is added at all and with a radio button the total is calculated properly. So, this says to me that the code for calculating is different front end to back end and also from radio to check box. i need this in the backend just as much as the front end tho, so still a mystery...

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

  • Page:
  • 1
  • 2
Time to create page: 0.133 seconds