Subtotal: $47,098.00
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.
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]
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].
It can be done even easily by simply creating a hidden UserID textbox on the form and giving it the default value of [User:userid]
Then your action can simply check if UserID Contains Value (Logged In User) or Not (New User)