Title: Completing Dynamic Values
Last modified: August 20, 2016

---

# Completing Dynamic Values

 *  [agentauto](https://wordpress.org/support/users/agentauto/)
 * (@agentauto)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/completing-dynamic-values/)
 * I was hoping you could help me with this question.
 * I am needing to create a shortcode that can call the value of the Stock field
   on each particular listing.
 * For example, check this out – [http://style.agentauto.com/inventory/200/](http://style.agentauto.com/inventory/200/)
   
   On the left, I have a form by formidable pro. They allow to put shortcodes into
   the fields if you want to dyncamically fill the form. How could I dynamically
   call the stock number? I would think it would be done by creating a shortcode
   around the Stock number php line <?php if ( $fields[‘stock’]){ echo ‘
    - <span class=”strong”>’.$options[‘stocktext’].’:</span> ‘.$fields[‘stock’].’
    - ‘;}else { echo ”; }?>
    - Logated in the Single-GTCD.php file.
    - Any suggestions?

The topic ‘Completing Dynamic Values’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [agentauto](https://wordpress.org/support/users/agentauto/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/completing-dynamic-values/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
