You need to sign in to do that
Don't have an account?
Insert record with in-line edit?
I have a VF page showing multiple custom objects with related lists. (Lists within lists actually). I have enabled inline edit for all of the fields and it works great. Double click the field, edit, click save. Save, cancel and new buttons all show and hide as expected.
My challenge is when inserting new records. I do NOT want to go the standard object detail screen to enter the information into the fields. (multiple linked and nested objects/lists means a lot of 'bouncing' back and forth that I want to avoid the user getting lost in. I would like for them to stay on the same page essentially inserting the record directly into the list).
My 'New' button adds a record to the list which adds and displays the new record properly. It has default text instructing the user to double click to edit. I would rather have the newly created record show up already 'in' inline edit mode.
Does anyone know of a way to initiate in-line edit mode without requiring the user to click or double click somewhere? I'm open to solutions either from the VF page doing it or the controller...
Thanks for listening (or reading...)
Can you please post your code, especially the part where you add a new record when the New button is clicked.
You might be able to somehow call the "dblClick" javascript event as soon as the new row is created- that way it will be editable to the user.
I'd be happy to. I'll post the less complicated one. This page only has a single level list and table:
Here's the Page:
And the controller:
I haven't worked with the javascript much so if you know how to work that it might be a good option...
Thanks!