Using Expressions - Resources for using Expressions?
Original Post by JHarwood (Imported from Ardevia Forum)
I am not a developer but long time SharePoint power user and admin. I'm exploring the Pro version of Rich Forms but am having a difficult time understanding the expression coding in some instances. Canyou point me to any resources for learning more about the underlying code/logic and definitions?
For example, I'm trying to add in a visibility rule to a tab based on a field being populated vs blank. I have the logic as: ?[[_field_name]] != " "
Do I need a value in the quotes to denote "blank" or "null?"
-
Original Post by dany (Imported from Ardevia Forum)
Rich Forms expressions use the JavaScript language extended with our placeholders which are always marked by the double square brackets. We have some documentation and examples on expressions at skybow SharePoint Apps . Concerning the JavaScript syntax, I find w3schools have a good JavaScript language reference (http://www.w3schools.com/jsref/default.asp) and helpful tutorials (http://www.w3schools.com/js/). But you'll find many more freely on the web.
You were close in solving your example though. Just use
[[_field_name]] != ""
without any space between the quotes.
0 -
Original Post by JHarwood (Imported from Ardevia Forum)
Thanks for the information as that is very helpful.
I'm also having some difficulties with accessing user information and the user profile. I can get it to work when setting up using the test button but get an error when trying the actual form that states it can't obtain the information.
0 -
Original Post by dany (Imported from Ardevia Forum)
Can you give some more details on the expressions you're using to get user information?
0 -
Original Post by JHarwood (Imported from Ardevia Forum)
Originally Posted by: dany
Can you give some more details on the expressions you're using to get user information?
I'd like to have some fields on the new form pre-populate based on the logged in user as shown in one of the videos by ardevia. It is successful if I use the information from "Context Objects > User > LoginName" but not if I try to use the User Profile objects (Context Objects > User > Profile > PreferredName). Running a test works for the user profile objects but not after saving it and testing the form.
The error I get includes:
Error occured on evaluating expression =[[@User.Profile.PreferredName]] Unexpected token0 -
Original Post by Vitaliy Zadorozhnyy (Imported from Ardevia Forum)
Hi, we had intensively tried to reproduce the issue you reported but without success.
Please try to clear it and retype, probably you typed some hidden symbol which breaks it after saving.
If this does not help can you provide us with more details:
1. If you use the same user account when designing form and when verifying it after saving and what type of user account is it (Sharepoint admin user, windows live id) with what permissions.
2. If this part "=[[@User.Profile.PreferredName]] " is enclosed in bigger one expression.
3. On what expression type you use it, (Initial Value, Calcualted Value, ...).
4. What version of ardevia rich forms pro you use.
?Thanks for your interest in Rich Forms application.
0 -
Original Post by JHarwood (Imported from Ardevia Forum)
It must have been a hiccup with O365 as it works now. Thanks for the help!
0
Please sign in to leave a comment.
Comments
6 comments