Title: Setting a field via a processor
Last modified: August 24, 2016

---

# Setting a field via a processor

 *  [alain-sole](https://wordpress.org/support/users/alain-sole/)
 * (@alain-sole)
 * [11 years ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/)
 * Hello David,
 * Many thanks for your wonderful plugin !
 * Is there any mean to set a field value inside a pre processor ?
 * Regards,
 * Alain
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

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

 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6062925)
 * Hi there.
 * yes there you can call:
    `Caldera_Forms::set_field_data($field_id, $value, $form);`
 *  Thread Starter [alain-sole](https://wordpress.org/support/users/alain-sole/)
 * (@alain-sole)
 * [11 years ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6063000)
 * Many thanks David,
 * I had tried it unsuccessfully a few days ago but I should have made a mistake
   at that time and now it works.
 * Just another question, is there any mean to force the rendering of the form after
   the field is set ?
 * Kind regards,
 * Alain
 *  [mlaw93](https://wordpress.org/support/users/mlaw93/)
 * (@mlaw93)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6063100)
 * Do you have any example form that shows a pre-process processor that populates
   the values of a form? I can write the php needed to retrieve the data from an
   external API that I am interested in populating on the form, but I am not quite
   sure where to go from there.
 *  [prash105](https://wordpress.org/support/users/prash105/)
 * (@prash105)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6063101)
 * I was able to set the field value in the pre processor and when I use the get_field_data
   I am able to see the updated value but the UI does not get updated .
    Is there
   any way we can update the UI or refresh the page.?
 * Thanks,
    Prashnat
 *  [itsdavidclarke](https://wordpress.org/support/users/itsdavidclarke/)
 * (@itsdavidclarke)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6063102)
 * Hi David,
 * Great plugin and it’s made my life a lot easier.
 * Quick question: Is there way to change the value of a slider depending on which
   option is selected from a dropdown box?
 * Any help appreciated.
 * Thanks,
    Dave..

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

The topic ‘Setting a field via a processor’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

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

 * 5 replies
 * 5 participants
 * Last reply from: [itsdavidclarke](https://wordpress.org/support/users/itsdavidclarke/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/setting-a-field-via-a-processor/#post-6063102)
 * Status: not a support question