NetTalk Central

Author Topic: Map/data/form/popup - no effect  (Read 6485 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Map/data/form/popup - no effect
« on: July 10, 2019, 10:07:37 PM »
Hi Bruce

In a map field under data and form,  whether I choose popup or not, it's always popup.
Is it a template bug or should it be like that?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Map/data/form/popup - no effect
« Reply #1 on: July 10, 2019, 11:34:40 PM »
I'd have to go check, but I think a Map form is always a popup.

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Map/data/form/popup - no effect
« Reply #2 on: July 10, 2019, 11:43:29 PM »
It actually makes good sense and I can also live with that.
But my challenge is to get my popup form to fill 100% in "mobile" mode. I can't figure out where to place my class on the form (on the template). If I set the width to blank, the template sets it to 150px. Nor can I see that the form has an id (far enough out) to style the form.
Does it make sense or is it just a nonsense?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Map/data/form/popup - no effect
« Reply #3 on: July 11, 2019, 10:54:11 PM »
>> my challenge is to get my popup form to fill 100% in "mobile" mode.

untested, but on the right track I think,

a) add a custom class to the form
' nl-width'
put it on the "outermost" css of the form (ie Form Div)

b) in your custom CSS

.nl-width{width:100%}
@media screen and (min-width: 1025px){
  .nl-width{width:50%}
}


cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Map/data/form/popup - no effect
« Reply #4 on: July 12, 2019, 05:24:20 AM »
Unfortunately, that doesn't work.
I can't get far enough out.
And the DIV I have to style has no ID. I have added an image and marked the DIV with yellow. Can you make it possible to add a DIV or an ID?
It would be a big help.

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Map/data/form/popup - no effect
« Reply #5 on: July 14, 2019, 10:17:06 PM »
That's a dialog - so you set the width on the Form template, Layout tab.
something like
'100%'

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Map/data/form/popup - no effect
« Reply #6 on: July 15, 2019, 12:11:11 AM »
I know, but then I can't control it by css. I only want to have width:100% in "mobile mode" and width:50% in "desktop mode".
So I need an ID or to insert a class in the most outer div in the dialog.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Map/data/form/popup - no effect
« Reply #7 on: July 17, 2019, 09:02:52 PM »
noted

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Map/data/form/popup - no effect
« Reply #8 on: July 19, 2019, 12:05:03 AM »
I have fixed it with jQuery, so it is not urgent to find a solution.