Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
How to automatically fill in email field with the company's name?
First, we have to select the company that a person belongs, and then the email is automatically filled.
Example:
Company: Quidgest
Email: _______@quidgest.com
How do we do that?
Hi,
@ is a special caracter, so, in order to get it working you must 'escape' it.
I've tried directly on the genio formula, and its working as expected:
Edit: Please note that this solution is only viable when working on interface level, with default formulas. Server formulas will not cope with this, so go with Maksym solution if that's that case.
Regards,
To be safer, create in Genio a function that does string formatting. The '@' character in MVC projects will give problems in JavaScript of this formula.
Implementations
CSharp:
return "@" + teamsName + ".com";
JavaScript:
return '@' + teamsName + '.com';
T-SQL:
RETURN '@' + @teamsName + '.com';
Then you can use this function in the formula
Note: Choose the type of formula depending on what is most appropriate for you.
I updated my answer. For use the functions that more safety for this cases when used some Razor special characters.
Keep Informed
About the Community
Question tools
Stats
Asked: 20/11/2019 上午11:03 |
Seen: 1913 times |
Last updated: 23/4/2020 下午2:28 |
Hello Maksym, i had the same trouble as João and after trying your solution it didn't work, "@" acts as a special character overriding the string concatenation.
An image describing my problem is available for your analysis after João's question.