Title: blue's Replies | WordPress.org

---

# blue

  [  ](https://wordpress.org/support/users/life2/)

 *   [Profile](https://wordpress.org/support/users/life2/)
 *   [Topics Started](https://wordpress.org/support/users/life2/topics/)
 *   [Replies Created](https://wordpress.org/support/users/life2/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/life2/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/life2/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/life2/engagements/)
 *   [Favorites](https://wordpress.org/support/users/life2/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/users/life2/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/life2/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/life2/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Making the calculated fields responsive](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/#post-18342420)
 * Okay, thank you, this might be the cause of the problems I have with resetting.
   I will modify the code and check again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Making the calculated fields responsive](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/#post-18342378)
 * I’m doing something like this:
 *     ```wp-block-code
       if(fieldname1 == 9) AND(ACTIVATEFIELD(fieldname2|n), ACTIVATEFIELD(fieldname3|n), ACTIVATEFIELD(fieldname4|n), IGNOREFIELD(fieldname5|n), IGNOREFIELD(fieldname6|n), IGNOREFIELD(fieldname7|n));else return AND(IGNOREFIELD(fieldname2|n), IGNOREFIELD(fieldname3|n), IGNOREFIELD(fieldname4|n), ACTIVATEFIELD(fieldname5|n), ACTIVATEFIELD(fieldname6|n), ACTIVATEFIELD(fieldname7|n));
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Making the calculated fields responsive](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/#post-18342368)
 * I was able to resolve the two problems. But, the showing/hiding of fields based
   on custom dependency rules seem to be slow and sometimes requires clicking on
   the page. Is there a reason for this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Making the calculated fields responsive](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/making-the-calculated-fields-responsive/#post-18340194)
 * Okay, that works, thank you.
 * There are also two issues with the reset button:
    1. The HTML field that lists the content of calculated field does not get empty
       after resetting even though the original calculated field becomes empty.
    2. Initially, the form loads properly with all the needed fields. After resetting,
       some fields (that use custom dependency rules) disappear. Then, I have to toggle
       between the choices to show those fields again.
 * Please advise on how to fix these two problems.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Custom dependency rules](https://wordpress.org/support/topic/custom-dependency-rules/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/custom-dependency-rules/#post-18336960)
 * Okay, what about the opposite of IN (not equal to)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Custom dependency rules](https://wordpress.org/support/topic/custom-dependency-rules/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/custom-dependency-rules/#post-18336937)
 * Okay, no problem, there was actually an issue with the field and I have resolved
   it. Another question, how do I combine these OR statements?
 *     ```wp-block-code
       if( OR(fieldname1 == 1, fieldname1 == 2, fieldname1 == 3, fieldname1 == 4) )
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Using letters in calculations](https://wordpress.org/support/topic/using-letters-in-calculations/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/using-letters-in-calculations/#post-18318868)
 * I actually had a mistake in the fieldname1 equation but I fixed it and everything
   is working fine now, thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Using letters in calculations](https://wordpress.org/support/topic/using-letters-in-calculations/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/using-letters-in-calculations/#post-18318815)
 * I implemented what you suggested exactly, just like this:
 *     ```wp-block-code
       CODETOCHAR(SUM(64, fieldname1))
       ```
   
 * But it ignores the ‘fieldname1’ and instead returns the character @ (character#
   64).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Using letters in calculations](https://wordpress.org/support/topic/using-letters-in-calculations/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/using-letters-in-calculations/#post-18318725)
 * The operator ‘String.fromCharCode’ does not work when I use a variable inside
   the brackets. I need to do something like this ‘String.fromCharCode(25+fieldname1)’.
   How to make this work?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Using letters in calculations](https://wordpress.org/support/topic/using-letters-in-calculations/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/using-letters-in-calculations/#post-18312778)
 * Okay, thank you. Another question, how do I convert a fraction to a simpler one(
   e.g. 5/4 to 1 1/4)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] About rounding numbers](https://wordpress.org/support/topic/about-rounding-numbers/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/about-rounding-numbers/#post-18307300)
 * Okay, but I need to round to the nearest 0.5 which is not possible with PREC.
   Is there a solution for this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] About applying two radio buttons to the same fields](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/#post-18307232)
 * Yes, I did adjust the equation for my fields but it still doesn’t work. But that
   fine, I found a workaround.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] About applying two radio buttons to the same fields](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/#post-18306733)
 * I tried your last code but it doesn’t work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] About applying two radio buttons to the same fields](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/#post-18306055)
 * Okay, thank you. I can implement this myself based on the code you provided. 
   Another question though; does work work for both radio buttons and dropdown list?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] About applying two radio buttons to the same fields](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/)
 *  Thread Starter [blue](https://wordpress.org/support/users/life2/)
 * (@life2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/about-applying-two-radio-buttons-to-the-same-fields/#post-18305237)
 * I have a question regarding the example you provided about the dependency rules,
   is it possible to disable choices on the second dropdown list based on the selected
   choice in the first dropdown list?

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/users/life2/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/life2/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/life2/replies/page/2/?output_format=md)