cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gorilla_8
Level 8

ON NEW SHOW A VAR, BUT I CANT DO IT

HEY GUYS, I NEED SOME HELP WITH AN ISSUE, I AM TRYING TO MAKE VISIBLE A "VAR" WHO I SET TO BE "solicitante" AND HE SHOWS UP WHEN THE USER CLICKS ON "new" IN SHAREPOINT, BUT I CANT DO IT.

 

ANY SUGGESTIONS? 

 

print.png

 

THANKS FOR THE HELP!

10 REPLIES 10
Dual Super User
Dual Super User

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Hi @Gorilla_8 

 

If you want to show some control only when the form mode is new, then you can set the "Visible" property of the control to:
 
If(SharePointForm1.Mode = FormMode.New, true,false)
 
This will it will only be visible when the form mode is new.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Community Support Team
Community Support Team

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Hi @Gorilla_8 ,

Could you please share a bit more about your scenario?

Do you want to make the "SOLICITANTE" button editable when you click "New" in SharePoint List?

 

Based on the needs that you mentioned, I assume that you want to make the "SOLICITANTE" button editable when you click "New" in SharePoint List, is it true?

 

I have made a test on my side, please consider take a try with the following workaround:

Set the DisplayMode property of the "SOLICITANTE" button to following:

If(
   SharePointForm1.Mode = FormMode.New,
   DisplayMode.Edit,
   DisplayMode.Disabled
)

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gorilla_8
Level 8

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

I tried the two options you gave me, but I just need one thing:

When the user clicks on the new button "REQUEST" is active and the form appears.

And when you click on edit an item the same thing.

Dual Super User
Dual Super User

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Hi @Gorilla_8 

 

Can you share an example of the implementation that you want to do in this case? I got a little confused when you say "When the user clicks on the new button "REQUEST" is active and the form appears. And when you click on edit an item the same thing.". Can you please share more details so that we might be able to help you better with this?

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Gorilla_8
Level 8

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

I wanna show like this when I click on new: 

 

print.png

 

 

and when I click on the item to edit, I wanna show like this: 

 

print1edit.png

Dual Super User
Dual Super User

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Hi @Gorilla_8 

 

Thanks for sharing the screenshots! Do you intend to select the buttons first and then show the form when the first button is clicked? or do you want a gap to appear before opening the form?

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Gorilla_8
Level 8

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

I want a gap to appear before opening the form

Dual Super User
Dual Super User

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Hi @Gorilla_8 

 

In that case, you can add a timer control to add delay. Can you try to set the configuration like:

SharePointIntegration:

OnNew: Set(FormModeSelected, "New");Set(StartTimer,true)
OnEdit: Set(FormModeSelected,"Edit");Set(StartTimer,true)

Timer:
Duration: 2000 ->2 Seconds
Start -> StartTimer
OnTimerEnd -> If(FormModeSelected = "New", NewForm(SharePointForm1), FormModeSelected = "Edit", EditForm(SharePointForm1))
Visible -> false

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Gorilla_8
Level 8

Re: ON NEW SHOW A VAR, BUT I CANT DO IT

Did not work out :'(

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,479)