Community > Answers
79 views

Registration & Profile Update form combined

Everything about doing a combination registration / profile update form works well so far - the form is tailored for each use case. On form submit, there is one action defined to register the user, and another action defined to update their profile. Can someone suggest how I can trigger the appropriate action to fire, based on whether the submitter is logged in (or not)? anon = register and logged in = update profile.

Thanks, I'm just not seeing it.

eswanzey eswanzey
asked 03/04/2019 21:50
Add Comment
Ashish Pachori
replied 03/05/2019 10:08

You can easily achieve it by creating SQL action below (Bind or update a single form field via SQL Query) and check UserId (Hidden Field) in condition while Profile Update / Registration action.

select userid from users where username  = [Username]

eswanzey
replied 03/05/2019 13:46

Thanks, I see. I thought I was overlooking an option or setting. I'm left with two issues, and not sure if the first one is a bug or feature (v5.2.6 on 9.2.2).

1. populating text fields with user profile values such as [Profile: MyField] works fine, except when there isn't a profile field value, the text field populates with "*******" (without quotes). Is that expected?

2. I have a dropdown populated with a SQL query. Can you please suggest the best way to pre-select an item in the dropdown? As an aside, it would be nice to have an "other" option in the form field "Selected" option whereby one could enter a custom value such as [Profile: MyField].

Last Activity 03/05/2019 21:58

1 Answer(s)

  • answered 03/05/2019 21:58
    Mandeep Singh
Add an Answer