Dear people,
Do you have a tutorial or example for saving data to the custom article field table (__field_values)?
I have been trying to use the Save Custom Field action but I am not sure what to enter in the fields.
I've tried somthing like this and al lot of other things, but I can't get it to work...
Do you have a tutorial or example for saving data to the custom article field table (__field_values)?
I have been trying to use the Save Custom Field action but I am not sure what to enter in the fields.
I've tried somthing like this and al lot of other things, but I can't get it to work...
Use the FIELD NAME, I don't know how that could be any clearer. Your custom fields have NAMES, yes? And like it says right there, it's FIELDNAME:VALUE
e.g. mycustomfield:{data:myforminput}
e.g. mycustomfield:{data:myforminput}
Okay, that's not really helping. I stated that I tried a lot of different formats and none of it works. This includes fielname:{data:forminput}.
I am saving an article in the content table with my form and I also want to include some Custom Fields for that same article.
What is supposed to go in 'Text id provider' when I want to get the article ID?
I am saving an article in the content table with my form and I also want to include some Custom Fields for that same article.
What is supposed to go in 'Text id provider' when I want to get the article ID?
The item id provider needs to be the id of the article. So you need to save the article first, and then save the custom fields with the item id provider something like {var:save_data_action_name_goes_here.id}
Perfect! That was of great help! Thanks a lot!
I have used the following values and it works like a charm.
I have used the following values and it works like a charm.
Hello,
I have tried using the example above, but with no success. Im trying to record 3 fields from the custom user fields and it doesn't record. Any help i would appreciate.
Regards
I have tried using the example above, but with no success. Im trying to record 3 fields from the custom user fields and it doesn't record. Any help i would appreciate.
Regards

Hi there,
The example uses Articles and Article Custom Fields. Not users.
Your field values list looks ok to me.
If you are also saving user data (ie. username, password etc.) in your form you can use the example I have added.
If the user is already logged in I think you can use {user:id} for Item ID Provider (didn't try this myself).

The example uses Articles and Article Custom Fields. Not users.
Your field values list looks ok to me.
If you are also saving user data (ie. username, password etc.) in your form you can use the example I have added.
If the user is already logged in I think you can use {user:id} for Item ID Provider (didn't try this myself).
Hello,
thanks for your reply. Yes Im creating the user but it doesn't fill the field. in your case what is 14 in the joomla_user14.id?
its a new registration form, and i just need some extra fields. RGPD / date of birth / mobile Phone.
Regards
thanks for your reply. Yes Im creating the user but it doesn't fill the field. in your case what is 14 in the joomla_user14.id?
its a new registration form, and i just need some extra fields. RGPD / date of birth / mobile Phone.
Regards
First create a Save User action (to save the username, password etc.)
The part in the black tag of the action can be used in the Item ID Provider.
Example in the first image.
The part in the black tag of the action can be used in the Item ID Provider.
Example in the first image.
This topic is locked and no more replies can be posted.