Title: Calculated field text string
Last modified: November 4, 2024

---

# Calculated field text string

 *  Resolved [PB](https://wordpress.org/support/users/ohtusabes/)
 * (@ohtusabes)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calculated-field-text-string/)
 * Hi [@codepeople](https://wordpress.org/support/users/codepeople/)
 * I want to obtain a calculated field showing 1 or more of 4 posible options:
    1. Ventilación con bolsa/máscara dificultosa
    2. Ventilación con máscara laríngea dificultosa
    3. Intubación traqueal dificultosa
    4. Crico dificultosa
 * Some fields are associated with one, some with more than one, and some with all.
   How could I do it? It shouldn´t be repeated. I mean: if two fields have the same
   options, it should show once.
 * Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcalculated-field-text-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calculated-field-text-string/#post-18114183)
 * Hello [@ohtusabes](https://wordpress.org/support/users/ohtusabes/)
 * Thank you very much for using our plugin. To create dependencies related with
   multiple fields you can use a calculated field as an auxiliary. However, the 
   implementation depends on your project.
 * For example, assuming have three fields, fieldname1, fieldname2, and fieldname3,
   and you want to activate the fieldname3 field only if the values of both fields
   fieldname1 and fieldname2 are “Si” and ignore it otherwise.
 * In this hypothetical case, you can insert a calculated field in the form (you
   can hide it by ticking a checkbox in its settings) and enter the equation:
 *     ```wp-block-code
       (function(){if(AND(fieldname1=='Si', fieldname2=='Si')) {   ACTIVATEFIELD(fieldname3|n);} else {   IGNOREFIELD(fieldname3|n);}})()
       ```
   
 * Note that fieldname3 includes the |n modifier. It tells the plugin you are referring
   to the field’s name directly instead of its value.
 * Best regards.
 *  Thread Starter [PB](https://wordpress.org/support/users/ohtusabes/)
 * (@ohtusabes)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/calculated-field-text-string/#post-18114274)
 * Hi [@codepeople2](https://wordpress.org/support/users/codepeople2/)
 * Thank you for the support.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calculated field text string’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [calculated field](https://wordpress.org/support/topic-tag/calculated-field/)
 * [text string](https://wordpress.org/support/topic-tag/text-string/)

 * 2 replies
 * 2 participants
 * Last reply from: [PB](https://wordpress.org/support/users/ohtusabes/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/calculated-field-text-string/#post-18114274)
 * Status: resolved