Creating Prefilled Express-Form

Permalink
I try to build an express-form with some prefilled values.
<?php
                /** @var Concrete\Core\Express\EntryBuilder $entry */
                $entry = Express::buildEntry('praemie_order')
                    ->setPraemieVorname('Andrew')
                    ->setPraemieNachname('Mustermann')
                    ->save();
                $entity = $entry->getEntity();
                $context = new FrontendFormContext();
                $forms = $entity->getForms();
                /** @var Form $form */
                $form = $forms[0];
                $renderer = new Renderer($context, $form);
                print $renderer->render($entry);
                ?>

This approach works but because of the ->save() a new express-entry is saved each time.
So that's not, what I want...
How can I create a prefilled entry as startingpoint for the form?

maschenborn
 
jfhencken replied on at Permalink Reply
jfhencken
maschenborn,
Did you every figure out how to use an Express form to load an existing data object entry in order to change values and then save (update) the form?
Just like the Dashboard does when this call is made:
https://your-domain.com/index.php/dashboard/express/entries/edit_ent... (where 205 is an example of the ID of the Express entry you want to update)
I would like to know how to recreate the Dashboard edit entry page on any webpage. Right now I am just passing the entry ID like this:
$vcIDLink = '<a target="_blank" href="'.$domain.'/index.php/dashboard/express/entries/view_entry/'.strval($vcID).'">'.strval($vcID).'</a>';
echo '$vcIDLink';