cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yuriarciniegas
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
CarlosFigueira
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

v-yuxima-msft
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
CarlosFigueira
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

v-yuxima-msft
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

@CarlosFigueira Thank you for help me. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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