User Fields for API Post Man Body

Method : POST

Url : http://192.168.43.172/c19012022/user/register?_format=hal_json

Headers : Content-Type value: application/hal+json

Body :

Drupal 9 Profile Address Country Field selected not saving/ sticking on multistep form when using previous/ back button

If you are using the Profile entity Address field in a multi-step form and allow the user to go back to edit a previous step of the form and the page does not retain the information that was previously entered...

This fix is for you!

Check the configuration of your Profile Address Field.

If you choose to have a "Default" Country but use any of the fields of the Address field collection, all pieces of the Address Field NEED a default selected in the GUI too. 

For instance:

Custom User Field selected value as default for Drupal

With help from the awesome Ryan!

 'profession' => [
          '#type' => 'select',
          '#title' => $this->t('Professional Category'),
          '#required' => TRUE,
          '#empty_option' => $this->t('- Select -'),
          '#options' => $professions,
          '#default_value' => isset($user) ? $user->get('field_profession')->target_id : '',
        ],

 

Profession is the custom user field.

:)

 

Sublime as default editor and Diff tool for MAC Git - Git Commands

 

Diff Tool

You can use you Console or edit the config file directly. Either will work.

IN GIT

Run this:

git config --global diff.tool subl                   
("l" is and lowercase L)

Then run this:

git config --global difftool.subl.cmd "subl --wait --diff $LOCAL $REMOTE"

OR

Command prompt throws an error when git config --global -e - Setting up Git - Visual Studio Code

Just an easy fix for me, hope it is for you as well.

When your path for Visual Studio Code in the command prompt when configuring Git isn't working and it is a new VS install... restart your computer after installing Visual Studio Code.  It should set the path and "code" will work in command prompt.

Format Date and Times for galleries- Power Apps

Put the below in your "Text" property:

Text(ThisItem.YourColumnName,"hh:mm AM/PM")

 

Example and below results:

Text(ThisItem.BackToHHSDTime,"hh:mm AM/PM")

 

 

Navigate to different screens based on data card selected value.- Power Apps

In the forms "OnSuccess" Property.

 

If(DataCardValue62_6.Selected.Value = "Approved", Navigate('Success-Approved-HS',ScreenTransition.Fade), If(DataCardValue62_6.Selected.Value = "Denied", Navigate('Success-Denied-HS'),ScreenTransition.Fade),true,false)=true

Steps to make sure you can use AM and PM in Datacards PowerApps

1. Insert Drop Down to Date Data Card, within the card. 

Convert Time Zone for HTML Table Power Automate

When you need to convert the time a certain time zone. :)

HTML Tables and Date and Times- Power Automate

So in HTML tables it doesn't seem like you can use convert time zone step to format the date the way you would like it so I did this and it works like a charm.

In dynamic content click the expression tab and enter this

formatDateTime(item()?['YourField/Column'],'dd-MM-yyyy hh:mm tt')

 

formatDateTime(item()?['BackToHHSDTime'],'dd-MM-yyyy hh:mm tt')

Pages

Subscribe to Melinda Cozza - Power Platform and CMS Developer RSS