Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
How to replace input value using redux-form ? React

I using redux-form to get value from input ->

          <Field
            id="primary-color"
            name="theme.primaryColor" <- How to get value
            component={ButtonColorPicker}
            label={intl.formatMessage(messages.primaryColor)}
          />

And this is work good but,

I want to replace this theme value sometimes.

I have dropdown when I want to change value ->

          <Field
            id="colorDropdown"
            name="colorDropdown"
            component={renderColorDropdown} 
            options={options}
            onChange={this.selectedColors}
          />

selectedColors is function

  selectedColors = (colors) => {
    let { theme, formValuesTheme } = this.props; 
    console.log("colors", colors); 
  };

I got good results but I want if not selected anythink i need to set:

          <Field
            id="primary-color"
            name="theme.primaryColor" <- How to get value
            component={ButtonColorPicker}
            label={intl.formatMessage(messages.primaryColor)}
          />

But if is changed dropdown to set selected ->

          <Field
            id="primary-color"
            name="NEW_SELECTED_VALUE" <- How to replace old value with new selected
            component={ButtonColorPicker}
            label={intl.formatMessage(messages.primaryColor)}
          />
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!