[Resolved] conditional cred fields defualt values not submitting when hidden
This thread is resolved. Here is a description of the problem and solution.
Problem:
conditional cred fields default values not submitting when hidden with Toolset Form
Solution:
You can use the Toolset Form's hook: cred_before_save_data
in order to assign the default value based on your conditional selection of Form group for form fields.
I am not sure if this is a bug or just not supposed to work this way, however, something isn't working right with CRED conditional fields.
I have a conditional field that houses a bunch of other fields, Generic and standard Type fields - its closed by default.
In these fields, I have default values that are set by types fields... now, when I submit the form and the conditional is closed they default values do not populate the custom post type.
When the conditional is open they do submit?
the default values don't get saved ONLY when the conditional box is closed, e.g when they are not visible.
As soon as I make them visible using the conditional - e.g visible as fields in the browser with the default values showing do they then get saved on submission.
But I would like to know is it for only generic fields or its also applicable to normal types field.
It seems its because when the conditional block is closed - the fields will be hidden and does not get posted. But I can tell you or offer you workaround once I see the things in action.
Can you please share problem URL where you added the form and tell me what are the field names that does not get saved.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
But I'm afraid that the admin access details you shared is not working at this end. Can you please share working admin access details. The member access details works.
I have set the next reply to private which means only you and I have access to it.