Hi filip,
As I mentioned above, it is only a demo, you will need to customize it.
The original post of this thread is a CRED form for creating post, now the new questions is about CRED form for editing post and other CRED forms and other CRED generic fields, so the question is different.
For the new questions:
Q1) However, it's not possible to edit the entry in that same form afterwards. I change the choice, press 'submit', and while it gives a success popup, the entry is still the same old one...
The PHP codes only works for CRED form(id 800), if you need to apply same function to other CRED form, for example: you will need to modify the PHP codes, from:
if ($form_data['id']==800){
To:
if (in_array($form_data['id'], array(800, 838))){ // here you can add more CRED form ID into the array
More help:
hidden link
Q2) this is no longer usable since we're no longer working with just 1 "t2" ID, but with an ID per regio (as seen in cred forms)
1) It needs new custom fields setup with Types plugin, see post:
https://toolset.com/forums/topic/using-cpt-entries-in-cred-registration-form-select-field/page/2/#post-581978
step 1) create a custom single line user field "billing-addresses"
You will need to create other custom user fields for new generic fields
2) Then modify the PHP codes to add new fields, for example:
$t3 = $_POST['t3'];
$user_id = $post_id;
update_user_meta($user_id, 'wpcf-t3', $t3);
Again, it is only a exapmle, you will need to customize it, please create new thread for the new questions, that will help other users to find the answers,