hello Flarum family
i just added some new fields in my signup form but i don't know how to get their value check my code
import {extend} from 'flarum/extend';
import app from 'flarum/app';
import CommentPost from 'flarum/components/CommentPost';
import SignUpModal from'flarum/components/SignUpModal';
app.initializers.add('theme-whatsapp', function ()
{
CommentPost.prototype.content2 = CommentPost.prototype.content;
CommentPost.prototype.content = function () {
var e = this.content2();
console.log(app);
console.log(app.forum.attribute('dirauto'));
try {
if(app.forum.attribute('dirauto') == 1)
{
e[1].attrs.className = "Post-body";
e[1].attrs.dir = "auto";
}
} catch (e) {
console.log('error: ');
console.log(e);
}
return e;
};
//---------------
SignUpModal.prototype.onsubmit = function (e) {
e.preventDefault();
this.loading = true;
//i want to get value Of LicenceId and CIN and store all form except password into txt file //
};
extend(SignUpModal.prototype, 'fields', items => {
items.add('Idlicence', m('.Form-group', [
m('input.FormControl', {
type: 'text',
placeholder:'Licence Id',
}),
]));
items.add('cin', m('.Form-group', [
m('input.FormControl', {
type: 'text',
placeholder:'Veuillez saisir votre Cin'
}),
]));
});
});