Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Open document

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Open document

Unread post by vanman »

Hi

Firstly thanks for all help so far.

I want to be able to open a pdf file from the file system that I placed when we send the email, also saved the filename and path in a document table.
On a documents tab is a sub form showing the saved documents including a open button.
onclick I want to open the document the file.

Thanks

Paul
kev1n
nuBuilder Team
Posts: 4570
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 532 times
Contact:

Re: Open document

Unread post by kev1n »

Add an onclick event to the buttons like

Code: Select all

const fileName = nuSubformRowObject(event.target.id, 'file_name'); // <- rename file_name
window.open(fileName, 'blank');
where file_name is the the object id of the filename.
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Open document

Unread post by vanman »

Hi Kevin

Thanks

I tried using PHP and passing parameters but to no avail. Keep getting error messages.

Will try this tonight.

Thanks Heaps

PvG
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Open document

Unread post by vanman »

Kevin
If you dont mind can you recommend resources for someone with average knowledge to learn javascript or php.

PvG
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Open document

Unread post by vanman »

Thanks Mate
Post Reply