cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Power Apps
Power Apps

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

Highlighted
Community Support
Community Support

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
Highlighted
Power Apps
Power Apps

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

Highlighted
Community Support
Community Support

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

Highlighted

@CarlosFigueira Thank you for help me. 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,033)