Submitted by melinda on Tue, 10/11/2022 - 10:04
For select list/ drop down lists. You may have run into the problem that you need it required and it has a default value that may be overlooked causing a break in data integrity.
in your dropdown allowed values do this
|Select One
Value1|Value 1
Value2| Value 2
Set your default to the "Select One" which is technically a "Null" value since there isn't a key before the pipe "|". This causes the validation message to fire. :)
Submitted by melinda on Mon, 10/10/2022 - 11:46
I need to start over from scratch and pull down the original code from the repository because I was just lost in my changes.
In my local directory, I erased the repository.
In tower I went and pulled my repository branch down again.
Right clicked and "Open in terminal"
then commands:
1. lando start
2. Lando pull
a. added database with spacebar and then enter
b. pulled down "default" folder with spacebar and enter
3. lando rebuild
Submitted by melinda on Thu, 09/29/2022 - 14:27
Submitted by melinda on Thu, 09/29/2022 - 12:52
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:
Submitted by melinda on Wed, 09/28/2022 - 22:40
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.
:)
Submitted by melinda on Thu, 09/22/2022 - 13:27
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
Submitted by melinda on Thu, 09/08/2022 - 13:46
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.
Submitted by melinda on Thu, 08/25/2022 - 11:03
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")
Submitted by melinda on Wed, 08/24/2022 - 10:07
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
Submitted by melinda on Wed, 08/24/2022 - 09:28
1. Insert Drop Down to Date Data Card, within the card.
Pages