We try to manage a company with it trainings with formidable. We have created a CPT "trainings" with the contents, description a.s.o. and try to manage the order process with a formidable forms - because Cred was more for handling / create new values in cpt, not for a classical form - or?.
These trainings are done once in a month, so we have a list of start-dates like these
03.06.2020
02.07.2020
06.08.2020
These Startdates are added as CPT with Relationsship, because one Startdateset could work for different Training
Also we have a Field value called "Number of Days" on every training.
And we try to get an additional field Value "Date Range", wich was calculated from both:
Sof if for training A the value in Number of Days= 3 the result in Date Range should calculate and show
03.06.-05.06.2020
02.07.-04.07.2020
06.08.-08.08.2020
I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/
tnx for info - but it was not so, that User itself should add the Dates with Cred.
We add these values directly in the CPT Creation of the backend and the question was if it was possible to combine two fields to a new one.
Means Field Startdate (coming from Toolset Datepicker) and Fiels "Days (Numberfield) to a new field Daterange (as written on top).
Thanks for writing back and for sharing further details.
If you'd like to do this automatic processing of two fields to get and save a value in a third field whenever a post is added/edited through the post edit screen in the admin area, you can use the "save_post" hook: https://developer.wordpress.org/reference/hooks/save_post/