Gets replyEmailAddress and retentionPeriod from UGC config to use on the form Success Screen.
Code changes
Extracts settings from UGC config page data
Passes values for settings.replyEmailAddress and settings.retentionPeriodDays through to Success screen to be used as values
Makes sections of success screen conditional on these values being present.
Extends/Updates unit tests and story file.
(Note this only supports forms that use retentionPeriod (a number of days). We noticed a current Competition using retentionExpiryDate (a set date). I've confirmed with editorial we are not yet supporting Compeitions.
Resolves JIRA [number]
Overall changes
Gets replyEmailAddress and retentionPeriod from UGC config to use on the form Success Screen.
Code changes
(Note this only supports forms that use retentionPeriod (a number of days). We noticed a current Competition using retentionExpiryDate (a set date). I've confirmed with editorial we are not yet supporting Compeitions.
Testing
Test on Storybook (Tested as part of development)
Check on live (once merged)
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines