So, what I am doing is Collecting a bunch of information, and making it go to a Spreadsheet. I have various fields, Last Name, First Name, Grade, Etc..(see all fields in attachment.)
How can I make it to prevent the User from entering the same exact record? I currently have something set up to hide the "Add To Points & Dis Log" button. However, I have it set to only trigger when it is pressed. I cant wrap my head around how to disable it, if all the data on this form, already matches data in datasource?
Here is the code for the button, that is doing the collection, it will give you details of all my fields, and where i am collecting them too.
Collect(All,{Last_Name:LastNamePoint.Text, First_Name:FirstNamePoint.Text, Grade:GradeDropPoint.Text, Gender:GenderDropPoint.Text,Infraction:StudentOffensePoint.Text,Incident_Date:DateofOffensePoint.Text, Code:CodeInput.Text, Point_Assigned:PointsInput.Text, Discipline_Assigned:Discassinpoints1.Text, Actual_Resolution_Date:REsolutionDatePoints.Text,Points_YTD:PointsYTD.Text, Ethnicity:EthnicDropPoint.Text}); Collect(Log,{Last_Name:LastNamePoint.Text, First_Name:FirstNamePoint.Text, Grade:GradeDropPoint.Text, Code:CodeInput.Text, Administrator:AdminInput.Text, Power_School_Grade:PowerGradeText.Text, Disc_Assigned:DisciplineInput.Text, Start_Date:EndDateText_1.Text, End_Date:EndDateText.Text, ISAP_Periods:PeriodGivenInput.Text, Points:PointsInput.Text});UpdateContext({ClickableYesNo: true})
How do I disable the button if the info on this sheet, is already in the datasource?