May 28 2020 04:48 AM
May 28 2020 04:48 AM
I have a tab in an MS Teams team where users can view our upcoming corporate training sessions (i.e. Events). In each event description, I am putting a link to a sign up form. The sign up form is a list in MS SharePoint Online. In this list, there is a column to specify the event to which the user wants to sign up. I want this column to be automatically filled using the column default value function in SharePoint. The default value would be based on the root URL that led the user to the sign up form. For example, if the user was viewing training session X in Teams, it means the root URL is the event X URL. So, the formula would be: IF [Root URL] = (URL of event X) then "X", ELSEIF [Root URL] = (URL of event Y) then "Y"... and so on.
Does this hypothetical [Root URL] function even exist? If not do you have any suggestion for how I can tell which event the user is coming from such that I can fill the column automatically?
May 28 2020 06:00 AM
@beshr1993 : This seems some what complex. If I understood yours query, check if below logic applies here:
1) If Root URL is fixed then you can add the value X as parameter for different events.
2) Use different list to save event URL and Event title and lookup that list based on selection of the root url. This will automatically pop up URL and title on the list column.
Please let me know for any queries.
Jul 02 2020 05:33 AM - edited Jul 02 2020 05:36 AM
@Ashish_Kohale thank you very much for your super fast reply and sorry for mine being sooo late; I'd rolled out the ad hoc sign up system I had and got entangled in maintaining it daily. Now that I have some more time, I am going back to this to see if I can figure it out.
1) Yes, the root URL is fixed. It is saved as an event on SharePoint site, so that is clear.
2) You are saying that I should create another list with the URL of each event and its corresponding name, yes? So far so good. But then you are suggesting that in the event sign up list, the default value of the event name is a formula that takes the root URL and matches it with the URL-name list and returns the corresponding event name in that list?
I get the logic and it sounds like the solution to my problem. But I am not sure how to:
a) the function to take the root URL
b) the function to look up this source URL in another list on the same site and match the name
Can you please help me with these functions? Better even, can you please give me a hint of how the formula would look like in the default value field?
Again, thanks a lot and sorry for your help the late response.