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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (80,369)