ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Can I use js to change InitPopupForm Title
Title:
B
I
{code}
?
I'm opening a popup form like this: @(Html.Awe().InitPopupForm() .Name("pf2") .Url(Url.Action("Flavor_Input", "ProductSelect")) .Title("????") .UseFormData(true) .Close("ProductSelect_detailrefresh")) function faveropen(itm) { var rval = ""; rval = "<button type=\"button\" class=\"awe-btn\" onclick=\"awe.open('pf2', { params: { FType:'Top',PNamme:'" + itm.ProductName +"'} })\">??</button>"; return rval; } I would like to be able to specify the title each time I open the popup.
Save Changes
Cancel
RayBen
asked at 04 Sep 2024
Answers
B
I
{code}
?
You can try using this method: https://demo.aspnetawesome.com/PopupDemo#Open-without-initialization for the PopupForm you'll also need to add type: 'popupForm' and udb: 1 (use default buttons), ufd: 1 (user form data) example: awe.open({id: 'popup1', type: 'popupForm', content: 'hi', udb: 1, ufd: 1 }) (you can try it in the console here)
Save Changes
Cancel
Omu
answered at 04 Sep 2024
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK