Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio Buttons action text is hard coded. #14

Open
a4armaan opened this issue Sep 11, 2022 · 0 comments
Open

Radio Buttons action text is hard coded. #14

a4armaan opened this issue Sep 11, 2022 · 0 comments

Comments

@a4armaan
Copy link

For the Radio Buttons action text is hard coded in index.js at line no 435.

button: 'Select a product',

let samples = {
           messaging_product: 'whatsapp',
           recipient_type: 'individual',
           to: recipientPhone,
           type: 'interactive',
           interactive: {
               type: 'list',
               header: {
                   type: 'text',
                   text: headerText,
               },
               body: {
                   text: bodyText,
               },
               footer: {
                   text: footerText,
               },
               action: {
                   button: 'Select a product',
                   sections: validSections,
               },
           },
       };

But this can be anything. Can you please provide an option to use custom text instead fixed text.

mrabro added a commit to mrabro/whatsappcloudapi_wrapper that referenced this issue Oct 14, 2022
@mrabro mrabro mentioned this issue Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant