cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

how to have the input box closed when complete but also hv a edit button?

hi

 

This is gallery with input text , how to have the box close once it's input and patch. and still hv a edit button to edit it?

2.PNG

 

at the moment after input and patch it is still able to be overwrite.. 

and how to show the data in gallery in descending?  Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

you need to write a formula in the displayMode property.  Set a variable to true when the button is pressed.  Then use something like this in the DisplayMode.

If(variableName,DisplayMode.View,DisplayMode.Edit)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

The Textinput control has a DisplayMode property.  You can use that to switch the Textinput box from Edit to View when the button is pressed.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
bbsin
Post Prodigy
Post Prodigy

ok thx .  Do I need to write a syntax or just go to displaymode change to view?

 

if syntax, may I know wht syntax.  thx

Pstork1
Dual Super User
Dual Super User

you need to write a formula in the displayMode property.  Set a variable to true when the button is pressed.  Then use something like this in the DisplayMode.

If(variableName,DisplayMode.View,DisplayMode.Edit)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1,  Thank you

 

Can I also know how to have a delete X icon at the top of the gallery - to only delete the input box? not the row of record.  Thank you

Pstork1
Dual Super User
Dual Super User

Do you want it to clear all the input boxes in the gallery or just the one for the selected record?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
bbsin
Post Prodigy
Post Prodigy

Hi @Pstork1

 

like to ask u 

 

When i click on the view box, it will show the input text for edit.  which is great

but when I click my mouse on the input text box, it will go to view button before I can even input the text.

 

How to fix it?

Pstork1
Dual Super User
Dual Super User

If the text box is in view mode then it can't be the focus, so you can't click on it and get a cursor inside.  That only happens when its in edit mode.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,652)