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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

On checkout page I need to disable save button when there is no option has been chosen

(1) ShareShare
ReportReport
Posted on by
I want to access the code for save button on delivery options. but as I understood the savebutton as  props is not important cause I removed the props and save button is still there. it means it would be rendered by it's parent component. I do not know how to find parent component for "Checkout-delivery-option-view".  
const CheckoutDeliveryOptionsView: React.FC<ICheckoutDeliveryOptionsViewProps> = props => {
    const {
        CheckoutDeliveryOptions,
        checkoutErrorRef,
        viewState,
        deliveryOptions,
        deliveryOptionSelected,
        alert,
        waiting,
        // saveButton,
        editButton,
        cancelButton
    } = props;
  return (
        <Module {...CheckoutDeliveryOptions} ref={checkoutErrorRef}>
            {viewState.isLoading && waiting}
            {viewState.isError && alert}
            {viewState.isShowList && deliveryOptions && (
                <DeliveryOptionList
                    props={props}
                    {...deliveryOptions}
                    listOfLocations={locatonList}
                    onRadioSelect={handleRadioSelect}
                    onDropdownSelect={handleDropdownSelect}
                    selectedDropdownOption={selectedDropdownOption}
                    selectedRadioButton={selectedRadioButton}
                />
            )}
            {viewState.isShowSelected && deliveryOptionSelected && <DeliveryOptionSelected {...deliveryOptionSelected} />}
            {/* {viewState.isShowSaveButton && saveButton} */}
            {viewState.isShowEditButton && editButton}
            {viewState.isShowCancelButton && cancelButton}
        </Module>
    );
};
 
export default CheckoutDeliveryOptionsView;
Could any one help me how to find the parent component or if there is any other idea to access saveButton action.
deliveryOption.PNG
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 81 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 70 Super User 2026 Season 1

#3
Sagar Suman Profile Picture

Sagar Suman 58 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans