Jump to content
  • 0

Details Page Popup


ahollander
 Share

Question

8 answers to this question

Recommended Posts

  • 0

Hi  @ahollander

You can try to use the code below, just create an HTML block in your DataPage, click on 'Source' and paste the code below.

 

<!-- Just Update the Deployed URL to in this code to the Deployed URL of your DataPage, and you can also adjust the height and width of this pop up. Just update the number -->

<a  href="javascript:void(window.open('
https://c5eib829.caspio.com/dp/d90b60006f822a89840c4a60b477', 'Additional Images', 'width=700px,height=850px'));"> Click here </a>

I hope this helps.

Regards,

TsiBiRU 

Link to comment
Share on other sites

  • 0

I have tried all of the solutions presented.

The situation:

  • I need to have the user click on a button to add a new entry in a pop-up window.
  • I am not a HTML/JAVA profficient person. I am learning to read it.

What I have tried:

What works:

  • I have been able to get the modal to popup.
  • The datapage I am using is a submission page.
  • The "Add" page adds the record and it is displayed in the Reports page in the background.

The problem:

  • Apparently Submission (Add) pages are not supported.
  • When the popup button is closed, control and focus is not returned to the parent page.
  • If I "kill" the window, control is returned to the parent.

Does anyone know how to fix this? Or a work-around? Or another solution?

Link to comment
Share on other sites

  • 0

OK... I am back to working on this.

I have taken the code from TsiBiRU  and edited it to pass a key:  

image.thumb.png.971307ce36f693da5086793471e0619f.png

Now the problem I'm having is that my Submission page (the popup) cannot find the passed variable (FoodID). I have tried [@FoodID], [FoodID], and [@cbFoodID].

What am I missing?  I know it has to be something simple. Right?

<a  href="javascript:void(window.open('
https://c1hcr495.caspio.com/dp/66ceb000066a02a9c050467b9131', '?FoodID=[@field:FoodID#]', 'Add to Diary', 'width=600px,height=400px'));">Add to Diary</a>
Edited by Lynda
hit enter too soon
Link to comment
Share on other sites

  • 0
On 1/5/2023 at 7:39 AM, Lynda said:

OK... I am back to working on this.

I have taken the code from TsiBiRU  and edited it to pass a key:  

image.thumb.png.971307ce36f693da5086793471e0619f.png

Now the problem I'm having is that my Submission page (the popup) cannot find the passed variable (FoodID). I have tried [@FoodID], [FoodID], and [@cbFoodID].

What am I missing?  I know it has to be something simple. Right?

<a  href="javascript:void(window.open('
https://c1hcr495.caspio.com/dp/66ceb000066a02a9c050467b9131', '?FoodID=[@field:FoodID#]', 'Add to Diary', 'width=600px,height=400px'));">Add to Diary</a>

Hi @Lynda

May I know the value of the FoodID? If the value reaches greater than 999, it will now have a comma separator. For example, it will results to 1,000 instead of 1000. You may try to remove the # in the parameter field  - [@field:FoodID]

 

Hope this helps! :) 

Link to comment
Share on other sites

  • 0

Hello - If you have a modal and Form Elements that are not showing such as AutoComplete, Dropdowns, and Date Pickers, you can use a custom CSS to show these elements in front of the modal.

Insert this code in the Header of the DataPage.

<style>

.modal-backdrop{
z-index:4 !important;
}
.modal {
z-index: 5 !important;
}
.header-navbar{
z-index: 3 !important;
}

</style>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...