Hi Francesca Shiekh, Angel Magana
I create a custom field type and i added it to de record.php.
I want to keep this field in edit mode always in the view.
Does anyone know hot to get this?
Modify the handlebars file "detail.hbs" for the custom field. You can give the field any appearance that you'd like. But you could copy the code for the edit.hbs that matches the type of field you have created. If it's a text field for example, you can copy the code from clients/base/fields/text/edit.hbs into the "detail.hbs" of your custom text field
if you keep the field in Edit mode, you also have to keep the top buttons in Edit mode, so that you can have a Save button. Else how are you going to save the changes made to that field? And if you do that, you will most likely end up with a warning that there are unsaved changes when you navigate away from the record, even if you didn't really change anything. Which means the user will need to Cancel before moving away.
It doesn't seem like a worthwhile process.
Can you explain your scenario a bit more? Maybe there is another solution to your business requirement.
I created a custom field with drag and drop functionality.
When i click this field, the edit view is enabled.
But when i click to another field or another place in the view, the changes that i made in this field are omitted and the options chosen in the "Dashlets Disponibles" field are returned to the "Dashlets no Disponibles" field.
That's why i would like the field to remain in edit mode to avoid that if you click anywhere in the view, the changes area ignored.
Thank's in advance.
It looks like you are trying to have a distinction between Available and Not Available for a set list of items.
What if, instead of a drag and drop between two fields, you just had one field with a multi-select and considered anything that is selected as Available and anything that is not selected not Available.
It would save you a lot of work.
Finally made it!
I generated this functionality through overwriting a piece of the native code from record.js
Retrieving data ...