Ok... the auto action worked great! Thank you.
Now we deal with the language file conditioning. The following (that you suggested in a previous post of yours) works great.
[cb:if cb_registeras="Person"]First and Last Name[cb:elseif cb_registeras="Company"]Company Name[/cb:elseif][cb:else]Name / Company[/cb:else][/cb:if]
But we need more conditioning. We need to condition like bellow...
[cb:if cb_registeras="Person"]First and Last Name[cb:elseif cb_registeras="Company"]Company Name[/cb:elseif][cb:elseif reason="search"][cb:if url contains "userlist-companies"]Search for Companies by name[cb:elseif url contains "userlist-individuals"]Search for Individuals by name[/cb:elseif][/cb:if][/cb:elseif][/cb:if]
but when we use it, the label disappears from registration page. It shows pretty fine on all the other pages.
Is there a reason that explains the fact that the label disappears when we expand the conditioning to (reason=search) or (url contains...) ?
Is there a case that we have a conflict between these types of conditioning and the auto action jquery?
EDIT...
I think i have spoted the problem.
Logically the jquery searches the language file before it does anything. There (with the substitutions we used before, there is no reference to the registration page, so the label for field "name" was not showing at all.
We added one more condition to the language string and it became like this.
Code:
[cb:if user_id="myid"] [/cb:if] [cb:if cb_registeras="Person"]First and Last Name[cb:elseif cb_registeras="Company"]Company Name[/cb:elseif][cb:elseif reason="search"][cb:if url contains "userlist-companies"]Search for Companies by name[cb:elseif url contains "userlist-individuals"]Search for Individuals by name[/cb:elseif][/cb:if][/cb:elseif][/cb:if]
Now it works pretty fine.
Do not know if the above code may cause any issues. Any suggestions are pretty much appreciated.