solved How to rename a custom field?

pch
@pch
10 years ago
328 posts
Hello,

Based on the video tutorial found here in JR i have created a custom field called video_genre (it how it is named on the video tutorial).

I have set it up, translated all its language strings and video files are already using it.

Now when I went to the video item_detail template to add ({$item.video_genre}, I've found that there is already a code {$item.video_category} ready to be used in the template although the field was not built-in JR yet.

I don't want to delete my custom field video_genre since there are already many things associated with it.

Can someone show me how to rename the field, from "video_genre" to "video_category"?

Thanks in advance.
updated by @pch: 10/04/16 05:37:05AM
brian
@brian
10 years ago
10,149 posts
You can't rename a custom field - you need to delete it and create a new one, although you will NOT be able to create a new custom field that has the same name as an existing field (whether it was created via the Form Designer OR it's an internal field).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
pch
@pch
10 years ago
328 posts
brian:
You can't rename a custom field - you need to delete it and create a new one, although you will NOT be able to create a new custom field that has the same name as an existing field (whether it was created via the Form Designer OR it's an internal field).

Ok. I will just delete it and create a new one. Thanks
pch
@pch
10 years ago
328 posts
Hi Brian,

I have deleted that custom field and created a new one but its language strings don't get deleted, there are still there. Is it normal? It is it how it was supposed to work? Isn't supposed to automatically get deleted when the field is deleted?

Thanks
douglas
@douglas
10 years ago
2,808 posts
When adding a custom field, there are usually more than one form that has to be modified, make sure you've removed the unwanted field in all forms. There is a drop down selection to choose the form, ie. update, create etc.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
pch
@pch
10 years ago
328 posts
I have double checked the update and the create form and any other form but i couldn't lfind a form that is still using that field.

Tags