Editing a document with another form than it was created with ...
Hi
On this website I have a signup form with basic information. After you've signed up and been approved you'll be able to edit your profile through another form, which has more fields.
Both forms has AllowEdit = 1 but the second form doesn't load any data.
Can a document be edited with a form other than the one it was created with ?
So my current solution is to use the same form, but hiding the extra fields in the Signup process. But now when I try to edit the document I get this error when I try to save it.
Yup it was that bug (wasn't merged correctly to 3.x), just released a 3.0.3 that doesn't have the issue but if you are on 3.x and sql server you'll need to update the db and drop a primary key on the UFRecordDataString table sorry for the inconvenience :(
Editing a document with another form than it was created with ...
Hi
On this website I have a signup form with basic information. After you've signed up and been approved you'll be able to edit your profile through another form, which has more fields.
Both forms has AllowEdit = 1 but the second form doesn't load any data.
Can a document be edited with a form other than the one it was created with ?
Comment author was deleted
@Sebastian nope the edit will only work for records from the form it was created with
But you might want to look into setting default values like {member.emai} ...
Ok.
So my current solution is to use the same form, but hiding the extra fields in the Signup process.
But now when I try to edit the document I get this error when I try to save it.
Comment author was deleted
Can you tell me the Contour version you are running?
3.0.2, just downloaded it yesterday :)
Comment author was deleted
Any chance you can send me an export of the form (tg at umbraco dot com) can't reproduce at the minute
Also does editing records in the backoffice work or getting the same error?
Yes, it also fails from the backoffice, but only if I choose other tags.
Comment author was deleted
Ok thanks seems to be something with the checkboxlist, what db engine are you running on?
Comment author was deleted
Must be this bug that crept back in http://issues.umbraco.org/issue/CON-98 solution up shortly :)
Comment author was deleted
Yup it was that bug (wasn't merged correctly to 3.x), just released a 3.0.3 that doesn't have the issue but if you are on 3.x and sql server you'll need to update the db and drop a primary key on the UFRecordDataString table sorry for the inconvenience :(
Here is the sql to drop the constraint
ALTER TABLE UFRecordDataString
DROP CONSTRAINT PK_UFRecordDataString
GO
The easiest way to upgrade ?
Uninstall and the reinstall ? or just uploading a DLL ?
Comment author was deleted
Nope you'll need to run the sql snippet since there are no code changes it's just the db script that has been updated
ALTER TABLE UFRecordDataString
DROP CONSTRAINT PK_UFRecordDataString
GO
Nice ... already did that.
Thanx for great help.
is working on a reply...