Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Conditional Show/Hide not working correctly with HTML/Calculation fields

$
0
0

Replies: 0

Hello,

I am having an issue with HTML fields and calculation fields not working correctly when using conditional show/hide on them.

Here is my issue:
I have a calculation field that is supposed to update based on values entered in other fields (I used manual formula option with magic tags). It starts out hidden, then based on the user selecting yes in a dropdown field, it is displayed. However, when it is displayed the calculated value is blank. The only way to get the correct number to show up is to edit the field that the calculation is based on.

The other way that I had tried of doing the same thing was to use a calculation field that is always ‘visible’ (although hidden from the user by css) that will always have the correct calculation, this part works. Then, I use an HTML field and magic tags to include the calculation result. However, the issue with this is that the conditional show/hide does not work on the HTML field (it will HIDE just fine, but does not reappear upon picking yes in the dropdown). Sometimes it will reappear when I change something unrelated that causes other fields to show (using a completely different condition). Unfortunately, my form is very complicated, and this issue was not reproducible on a simple form (both of the above situations worked fine).

I can send the exported json of the form as well as a link to the current form (privately) if that is needed.

Thanks,
Mason


Viewing all articles
Browse latest Browse all 59525

Trending Articles