Completing the Add/Edit ScholarX programs functionality

Using the platform we must be able to achieve below requirements.

  1. Add a program
  2. Edit a program

I will be working on these requirements.


1 Like

Hereā€™s the PR for Add a program:


1 Like

Thanks for the update @anjisvj! This is brilliant!

Iā€™ve added some comments: https://github.com/sef-global/scholarx-frontend/pull/25#pullrequestreview-515280565
Feel free to contact me if you need some clarifications.

1 Like

Hereā€™s the PR for Edit a program:

1 Like

This is truly amazing, @anjisvj! Thanks for getting this done! :heart_eyes:

1 Like

Replied. https://github.com/sef-global/scholarx-frontend/pull/28#discussion_r511337001 @jaye

I found this peace From the Antdā€™s form API page,

After wrapped by Form.Item with name property, value (or other property defined by valuePropName ) onChange (or other property defined by trigger ) props will be added to form controls, the flow of form data will be handled by Form which will cause:

  1. You shouldnā€™t use onChange on each form control to collect data (use onValuesChange of Form), but you can still listen to onChange .
  2. You cannot set value for each form control via value or defaultValue prop, you should set default value with initialValues of Form. Note that initialValues cannot be updated by setState dynamiclly, you should use setFieldsValue in that situation.
  3. You shouldnā€™t call setState manually, please use form.setFieldsValue to change value programmatically.
1 Like

I added the changes. @jaye

1 Like

Merged! Thanks @anjisvj!

1 Like