Play a sound with the display of a confirmation message

Can you add an option to play a (beep) sound when you submit a Confirmation on a page?

A flag that switches this ON/OFF when you set up the Confirmation Message under SUBMIT rules would be great.

I have a few users who do not know their update is through: https://builder.knack.com/thejunction/fig/pages/scene_64/views/view_116/form/rules/submit

Hello Marc,

The test the below page for sound effects.
https://roberts.knack.com/farmers#test-sound/

Regards,
Sunny Singla

Can you send the script please so I do not have to retype.

Kind regards

image001.png

Marc Tison CEO and President

The Jobs Junction, Inc.

M 2782 552-0607

E marc@thejobsjunction.com

W www.thejobsjunction.com

…where insurance departs

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

image007.png

image005.png

Change sound according to your need

add script tag because when i try to add it’s disappear

var audio = new Audio(‘https://cdn.pixabay.com/download/audio/2022/03/16/audio_492840191c.mp3’);
audio.play();

I sorted out the script. Was lazy!

The problem is it does not work.

The tags fall away after saving.

<img width=“208” height=“337” style=“width:2.1666in;height:3.5104in” id=“Picture_x0020_11” src="//discourse-cloud-file-uploads.s3.dualstack.us-west-2.amazonaws.com/business7/uploads/knack/original/2X/c/c7c11c1e5ff5951fe49bd33c8f15cf086b440216.png" alt="Graphical user interface, text, application

Description automatically generated">

Kind regards

image001.png

Marc Tison CEO and President

The Jobs Junction, Inc.

M 2782 552-0607

E marc@thejobsjunction.com

W www.thejobsjunction.com

…where insurance departs

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

image007.png

image005.png

then you can try javascript solution

$(document).on(‘knack-form-submit.view_82’, function (event, view, data) { // Login Page to Redirect

var audio = new Audio(“https://cdn.pixabay.com/download/audio/2022/03/16/audio_492840191c.mp3”);

audio.play();

});

Change view id accordingly to your view. I tested it on the above link and it also works for me.

Regards,
Sunny Singla
ssingla1985@gmail.com

Hi Sunny,

I got it working with the scripting below. Drops the tags after saving?

The 2nd problem is it’s not firing up the display message (2nd rule) to the user. Seems like Knack can only handle one confirmation message in a submission. I want to display a message and play a sound for the user.

<img width=“349” height=“524” style=“width:3.6354in;height:5.4583in” id=“Picture_x0020_17” src="//discourse-cloud-file-uploads.s3.dualstack.us-west-2.amazonaws.com/business7/uploads/knack/original/2X/8/8a0d15d74e583ebeaf270c460275ebd137eb2a9b.png" alt="Graphical user interface, application

Description automatically generated">

Kind regards

image001.png

Marc Tison CEO and President

The Jobs Junction, Inc.

M 2782 552-0607

E marc@thejobsjunction.com

W www.thejobsjunction.com

…where insurance departs

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

image007.png

image005.png

I am happy the sound is working, but not sure why its not displaying the 2nd message notification. Maybe a Knack limitation?

I see your sample asl does not display a message. Just a grey bar.

Kind regards

image001.png

Marc Tison CEO and President

The Jobs Junction, Inc.

M 2782 552-0607

E marc@thejobsjunction.com

W www.thejobsjunction.com

…where insurance departs

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

image007.png

image005.png

This works after saving.

for any professional help, you can drop an email Marc.

Regards,
Sunny Singla
ssingla1985@gmail.com

it’s showing a Grey bar because i didn’t put any message

Put a message in and see if it works.

yes works you can also check on below link

https://roberts.knack.com/farmers#test-sound/

Tx got it working adding everything into one confirmation message.

Kind regards

image001.png

Marc Tison CEO and President

The Jobs Junction, Inc.

M 2782 552-0607

E marc@thejobsjunction.com

W www.thejobsjunction.com

…where insurance departs

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

image007.png

image005.png