Express Form User Field

Permalink 3 users found helpful
This is probably a dumb question, but is the id of the user who submitted an express form saved with the form data? I notice that 'Date Submitted' is automatically added as a 'standard property'; I seek a similar capability for UserId. That way, elsewhere in my site, I could use express object API calls to find the most recent submission made by the current user.

If not, is there a straightforward way to do this (ideally via the UI)?

Gondwana
View Replies:
cd13sr replied on at Permalink Reply
I'm also wondering about this. I want to display form results by user in their profile.

Any luck figuring this out?
jrmathis replied on at Permalink Reply
I need the same functionality. Did you ever come across a solution?
ThomasJ replied on at Permalink Reply
ThomasJ
Wow! Is c5 interest dying? A really good question is posted here. Here, 10 months later all that has responded are those of us who are looking for the same answers and no one offering suggestions. It's to bad that the fellows at Portland Labs don't scan these c5 forums every once in a while to make sure that as many of our issues are responded to as they can get to. I am trying to work through recreating a website from long ago and I'm finding a lot of posts in c5's forums that have gone unanswered for several, several months with no response. Neglecting those who need a little assistance with their creation is a very good way to drive interest away to another CMS, especially since there has been a complete, from the ground up, revamp of this CMS. I would say that at least 90% of the posts on the forums should be pulled as being no longer relevant to the current c5 structure. If this response seems to be over the top, it's because I find myself wasting a lot of my precious time reading posts on issues that no longer apply to c5 in it's more current versions, especially all those tutorial videos that were made back in the day, never updated, and still hanging around on YouTube.
jrmathis replied on at Permalink Reply
I agree completely. I think C5 is dying, which is a shame because I loved it. Lately, Wordpress seems to be a more actively developed and supported CMS and while C5 has major advantages, they just don't seem worth it anymore if you get stuck and can't find updated documentation or support. I realize it's free and support should be limited. But I find the outdated documentation/videos to be the most disturbing sign of C5's demise.
mnakalay replied on at Permalink Reply
mnakalay
Your best bet would be to use this tutorial:https://documentation.concrete5.org/developers/attributes/creating-c...

Using it you could create a custom attribute extending the text attribute but instead of showing a text box it would generate a hidden input with the user ID as a value. You could then add that attribute to your express form like any other attribute.
rosie607 replied on at Permalink Reply
rosie607
Also looking for this functionality and agree with other comments.
Am going to try building the custom attribute and see if that works, thanks mnakalay.
mnakalay replied on at Permalink Reply
mnakalay
A problem you're going to find out about very quickly is that, without extensive coding, there is no way to not display a label each attribute in the form and having a label for a hidden attribute kind of defies the purpose.

So what I would suggest is maybe, when extending the text attribute, create an attribute that uses at the same time the normal text input and a hidden field. Say you then use it for a "what is your name" field so that the label serves a purpose and the hidden field is added at the same time.
rosie607 replied on at Permalink Reply
rosie607
I had totally come up against that very thing. Your solution is a great workaround. I'm such a dope I just decided to use the label as the word 'Hello' so it said hello username. But your idea is much smarter ha ha.