Recreate link from Lists to Layouts

javrvan wrote on Thursday, May 19, 2016:

Greetings,
How can I link an Administration>Lists item (back) to Administration>Layouts. I got click-happy and deleted ‘Layout-Based Visit Forms’ and though I made a new List with the same title it does not have the same link to Layouts. Thanks.
van

sunsetsystems wrote on Thursday, May 19, 2016:

The “Layout-Based Visit Forms” list has an ID of “lbfnames”, however the New List tool does not let you specify the ID separately from the title. You’ll have to get into the database to fix this. I believe the query you want is:

update list_options set option_id = ‘lbfnames’ where list_id = ‘lists’ and option_id = ‘Layout-Based Visit Forms’;

Of course make a backup first as I have not tested this.

If you don’t understand this then you’ll need a pro to help you.

Rod
http://www.sunsetsystems.com/

javrvan wrote on Thursday, May 19, 2016:

Rod, With a minor adjustment to ‘Layout_Based_Visit_Forms’ your query worked like a charm. Thank You , Sir. van