cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
malvarezcc
Regular Visitor

Button to hide trash icon

Hi everybody, is been pretty helpful to me this forum, then thanks in advance.

 

im building a Timesheet app, i have everything pretty much done but i need to create a button to submit and lock the record added for the current week.

 

i have a sharepoint list and every entry goes to a finish week date, my idea is to create a button to hide the trash icon of the entries of the week 

SUBMIT.JPGThe red area is to entry the info, blue is a gallery to see the info attached on the current week ending date and in the bottom the button for submit.

 

i need to hide the trash icon when i press the submit button, but just for the data of the week ending, then the guys can continue the next week adding info and keep the older weeks lock (to don't change anything in the future).

 

thanks so much, everybody have a nice day. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @malvarezcc,

Have you solved your problem?

Do you want to hide the trash icon when you click the submit button?

Could you please share a bit more about your scenario?

 

Actually, you could create a variable to control the visibility of the trash icon.

If you only want to hide the trash icon for the current week ending, please try as below.

Set the OnSelect property of the submit button as below:

Set(HideVar,Text(ThisItem.'Week Ending',"dd/mm/yyyy")=DateAdd(Today(),7-Weekday(Today(),StartOfWeek.Monday)))​

Set the Visible property of the submit button as below:

HideVar

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
StalinPonnusamy
Community Champion
Community Champion

Hi @malvarezcc 

 

The goal is to show the delete icon when no entities are in Sharepoint. So set the Delete Icon Visible property to

IsBlank(LookUp(SPList, WWQ = ThisItem.WWQ && "Start Time" = ThisItem.'Start Time' && "End Time" = ThisItem.'End Time'))

 

Please make sure to update the SP list and Column Name as per your Data source.

 

Thanks,
Stalin - Learn To Illuminate

v-qiaqi-msft
Community Support
Community Support

Hi @malvarezcc,

Have you solved your problem?

Do you want to hide the trash icon when you click the submit button?

Could you please share a bit more about your scenario?

 

Actually, you could create a variable to control the visibility of the trash icon.

If you only want to hide the trash icon for the current week ending, please try as below.

Set the OnSelect property of the submit button as below:

Set(HideVar,Text(ThisItem.'Week Ending',"dd/mm/yyyy")=DateAdd(Today(),7-Weekday(Today(),StartOfWeek.Monday)))​

Set the Visible property of the submit button as below:

HideVar

 

Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,373)