Title: Use shortcode as dynamic value
Last modified: July 4, 2020

---

# Use shortcode as dynamic value

 *  Resolved [kimchinica](https://wordpress.org/support/users/kimchinica/)
 * (@kimchinica)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/use-shortcode-as-dynamic-value/)
 * Hello, can you please tell me if it’s possible to use a shortcode as a value 
   for a number field?
    I used this [post_title id=”8331″] to display the name of
   post 8331, which is a number, but it displays the name of the post the form is
   in.
 * Basically I want to use an exchange rate and I also tried your code
 *     ```
       <script>
       fbuilderjQuery(document).one('showHideDepEvent', function(){
       fbuilderjQuery.getJSON( 'https://api.manana.kr/exchange/rate/KRW/USD.json', function(data){fbuilderjQuery('[id*="fieldname1_"]').val(data[0]['rate']);} );
       });
       </script>
       ```
   
 * suggested here [https://wordpress.org/support/topic/filling-form-with-json-data/](https://wordpress.org/support/topic/filling-form-with-json-data/)
 * but I can’t get it to work with any of these 2 links
    [https://api.openrates.io/latest?symbols=USD](https://api.openrates.io/latest?symbols=USD)
   [https://api.exchangeratesapi.io/latest?symbols=USD](https://api.exchangeratesapi.io/latest?symbols=USD)
 * I would be grateful if you can help me with either approach.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/use-shortcode-as-dynamic-value/#post-13071228)
 * Hello [@kimchinica](https://wordpress.org/support/users/kimchinica/)
 * No, the plugin does not replace the thirds shortcodes into the form. The forms
   are rendered in the client-side, and we cannot ensure the code injected by third
   party shortcodes don’t break the forms’ structures.
 * Concerning the code that gets the exchange rates from the external API, it was
   implemented for querying the API: [https://api.manana.kr](https://api.manana.kr)
 * If you want to query a different API, you should edit the code, because the returned
   object is different. Please, watch the video visiting the following link:
 * [https://wordpress.dwbooster.com/customdownloads/2020/07/04/video-rate-o.mp4](https://wordpress.dwbooster.com/customdownloads/2020/07/04/video-rate-o.mp4)
 * Please, you must understand the support service does not cover the implementation
   of the users’ projects. If you need that we implement your project, you should
   contact us through our private website: [Customization](https://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [kimchinica](https://wordpress.org/support/users/kimchinica/)
 * (@kimchinica)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/use-shortcode-as-dynamic-value/#post-13071640)
 * Worked like a charm, thanks for your help.

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

The topic ‘Use shortcode as dynamic value’ 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

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [kimchinica](https://wordpress.org/support/users/kimchinica/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/use-shortcode-as-dynamic-value/#post-13071640)
 * Status: resolved