cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yuriarciniegas
Level: Powered On

Ayuda fecha en Powerapps

Buenos dias,

 

He personalizado un formulario con powerapps, pero quiero que el Label con la fecha no se pueda modificar por el usuario.

 

Anexo el formulario personalizado, donde muestra dicho formulario.

 

Agradezco su ayuda

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Ayuda fecha en Powerapps

If you don't want the date to be editable, you can change the DisplayMode property of the card for the 'Fecha de Ingreso' field to 'DisplayMode.View', as shown below (you may need to unlock the card first to change that property, by going to the advanced view in the property panel on the right):

ForumPost001.png

Notice that the form is shown both when you're editing existing items and when you are adding new items. If you want to have the date editable for new items, you can use the expression below:

If(Parent.Mode = FormMode.New, DisplayMode.Edit, DisplayMode.View)

One more thing: if you're editing the app in a browser with Spanish settings, you'll need to replace the ',' with ';':

If(Parent.Mode = FormMode.New; DisplayMode.Edit; DisplayMode.View)

Hope this helps!

View solution in original post

Community Support Team
Community Support Team

Re: Ayuda fecha en Powerapps

Hi @yuriarciniegas 

 

Is @CarlosFigueira 's suggestion solve your issue?If yes, please accept it as solution.

 

More information:

function-if

function-form

 

Best Regards.

Yumia

View solution in original post

3 REPLIES 3
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Ayuda fecha en Powerapps

If you don't want the date to be editable, you can change the DisplayMode property of the card for the 'Fecha de Ingreso' field to 'DisplayMode.View', as shown below (you may need to unlock the card first to change that property, by going to the advanced view in the property panel on the right):

ForumPost001.png

Notice that the form is shown both when you're editing existing items and when you are adding new items. If you want to have the date editable for new items, you can use the expression below:

If(Parent.Mode = FormMode.New, DisplayMode.Edit, DisplayMode.View)

One more thing: if you're editing the app in a browser with Spanish settings, you'll need to replace the ',' with ';':

If(Parent.Mode = FormMode.New; DisplayMode.Edit; DisplayMode.View)

Hope this helps!

View solution in original post

Community Support Team
Community Support Team

Re: Ayuda fecha en Powerapps

Hi @yuriarciniegas 

 

Is @CarlosFigueira 's suggestion solve your issue?If yes, please accept it as solution.

 

More information:

function-if

function-form

 

Best Regards.

Yumia

View solution in original post

yuriarciniegas
Level: Powered On

Re: Ayuda fecha en Powerapps

@CarlosFigueira Thank you for help me. 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,957)