anchor.diff:      <div data-role="collapsible" data-collapsed="<%= existingcollapsed %>">
         <%= f.fields_for name, existingobj do |sub_fields| %>
           <%
  -          random_name = SecureRandom.hex(10)
             fieldid = sub_fields.object_name.gsub("\[", "_").gsub("\]", "") + "_id"
           %>
           <h3><%= t("myplaceonline.general.existing") + " " + heading %></h3>
  
positive.code:       <% end %>
      </div>
      <% if !edit %>
        <div data-role="collapsible" data-collapsed="<%= !existingcollapsed %>">
          <%= f.fields_for name, existingobj do |sub_fields| %>
            <h3><%= (edit ? t("myplaceonline.general.edit") : t("myplaceonline.general.new")) + " " + heading %></h3>
            <%= render partial: objform + ".html", locals: { f: sub_fields, obj: existingobj, edit: edit, autofocus: autofocus } %>
          <% end %>
        </div>
      <% end %>
  
negative.code: existingobj ||= Myp.new_model(objform[0..(objform.index('/')-1)].singularize.camelize.constantize)
  collapsed = collapsed.nil? ? false : collapsed
  existingcollapsed = false
  random_name = SecureRandom.hex(10)
  new_item_collapsible_id = random_name + "_new_item"
  
  # If there are no existing items, then expand the new item instead
  if !objform.blank?
  