web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ENLAZAR UN TEXTINPUT C...
Power Apps
Suggested Answer

ENLAZAR UN TEXTINPUT CON UN DATACARD

(0) ShareShare
ReportReport
Posted on by 37
Hola 
 
Como le puedo hacer para que mi TextInput2 tome el valor de mi DataCardValue7 y lo guarde en mi columna Detalles
 
Actualmente  mi tabla se llama StatusTicket y tengo la columna Detalles y Obvservaciones
 
Lo cual me guarda todo en su lugar pero mi TextInput2 es independiente de mi DataCardValue7 y me gustaria que lo que tenga en DataCardValue7 se refleje en mi TextInput2
 
 
Mi DataCardValue7 es desblegable 
 
Items > Choices([@Tickets].UltimoEstatus)
ItemDisplayText > ThisItem.Value
 
 
 
Mi TextInput2 es de escribir
 
Default> ThisItem.Detalles
Onchange > Patch(StatusTicket;ThisItem;{Detalles:TextInput2.Text})
 
 
Intente cambiando en mi TextInput2 > Default > DataCardValue7.Selected.Value pero NO me guarda  
 
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    1,619 Moderator on at
     
    In Power Apps:
    • Default is only used when the control loads
    • When the user types, the Default value is no longer used
    • If the record changes, Default does not refresh automatically
    • Dropdown and TextInput do not auto-sync
    So this formula alone is not enough:
              TextInput2.Default = DataCardValue7.Selected.Value

    Correct and recommended solution
    Step 1: Create a variable to keep values in sync
    In DataCardValue7.OnChange:
              Set(varDetalle, DataCardValue7.Selected.Value)
    This stores the selected value in a variable.
     
    Step 2: Use the variable in TextInput2
    Set TextInput2.Default property as follows:

    If(
        IsBlank(varDetalle),
        ThisItem.Detalles,
        varDetalle
    )
     
    This means:
         If nothing is selected yet, show the saved Detalles
         If a value is selected in the dropdown, show it
     
    Step 3: Update the variable when typing in TextInput2
    Set TextInput2.OnChange
              Set(varDetalle, TextInput2.Text)
    Now TextInput2 and DataCardValue7 stay synchronized.

    Step 4: Save the value correctly
    In your Save button (recommended) or form submit:
    Patch(
        StatusTicket,
        ThisItem,
        { Detalles: varDetalle }
    )
    This ensures the final text (whether selected or typed) is saved.

    Important best practices
    Do NOT use Patch in TextInput.OnChange unless absolutely needed
    Always save data in one place (Save button or Form Submit)
    Use variables to sync multiple controls
    Dropdowns do not automatically update TextInputs
     

    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard